org.jboss.kernel.plugins.config.property
Class PropertyKernelConfig

java.lang.Object
  extended by org.jboss.kernel.plugins.event.AbstractEventEmitter
      extended by org.jboss.kernel.plugins.AbstractKernelObject
          extended by org.jboss.kernel.plugins.config.AbstractKernelConfig
              extended by org.jboss.kernel.plugins.config.property.PropertyKernelConfig
All Implemented Interfaces:
KernelConfig, KernelEventEmitter, KernelObject

public class PropertyKernelConfig
extends AbstractKernelConfig

Kernel configuration using properties.

Version:
$Revision: 90317 $
Author:
Adrian Brock, Les A. Hazlewood

Field Summary
 
Fields inherited from class org.jboss.kernel.plugins.config.AbstractKernelConfig
configuration
 
Fields inherited from class org.jboss.kernel.plugins.AbstractKernelObject
kernel, log
 
Fields inherited from class org.jboss.kernel.plugins.event.AbstractEventEmitter
eventListenerRegistry, NULL, NULL_FILTER
 
Constructor Summary
PropertyKernelConfig(Properties properties)
          Create a configuration
 
Method Summary
 DependencyBuilder createDefaultDependencyBuilder()
          Create the default dependency builder
 KernelBeanValidator createKernelBeanValidator()
          Create kernel bean validator.
 KernelBus createKernelBus()
          Create a kernel bus
 KernelConfigurator createKernelConfigurator()
          Create a kernel configurator
 KernelController createKernelController()
          Create a kernel controller
 KernelEventManager createKernelEventManager()
          Create a kernel event manager
 KernelInitializer createKernelInitializer()
          Create a kernel initializer
 KernelMetaDataRepository createKernelMetaDataRepository()
          Create a meta data repository
 KernelRegistry createKernelRegistry()
          Create a kernel registry
protected  BeanMetaData getBeanMetaData(org.jboss.beans.info.spi.BeanInfo info, String className)
          Get the bean metadata for the class
protected  Object getImplementation(String type, String defaultType)
          Get the implementation for a type
protected  Properties getProperties()
           
protected  void initializeProperties()
           
 
Methods inherited from class org.jboss.kernel.plugins.config.AbstractKernelConfig
getBeanInfo, getBeanInfo, getBeanInfo, getBeanInfo, getBeanInfo, getBeanInfo, getClassInfo, getClassInfo, getDependencyBuilder, getTypeInfo, getTypeInfo, setBeanInfoFactory, setClassAdapterFactory, setDependencyBuilder, setJoinpointFactoryBuilder, setTypeInfoFactory
 
Methods inherited from class org.jboss.kernel.plugins.AbstractKernelObject
getKernel, setKernel
 
Methods inherited from class org.jboss.kernel.plugins.event.AbstractEventEmitter
createEvent, fireKernelEvent, fireKernelEvent, hasListeners, nextEmitterSequence, registerListener, unregisterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.kernel.spi.KernelObject
getKernel, setKernel
 
Methods inherited from interface org.jboss.kernel.spi.event.KernelEventEmitter
fireKernelEvent, registerListener, unregisterListener
 

Constructor Detail

PropertyKernelConfig

public PropertyKernelConfig(Properties properties)
Create a configuration

Parameters:
properties - the properties
Method Detail

getProperties

protected Properties getProperties()

initializeProperties

protected void initializeProperties()

createKernelBus

public KernelBus createKernelBus()
                          throws Throwable
Description copied from interface: KernelConfig
Create a kernel bus

Returns:
the kernel bus
Throws:
Throwable - for any error

createKernelConfigurator

public KernelConfigurator createKernelConfigurator()
                                            throws Throwable
Description copied from interface: KernelConfig
Create a kernel configurator

Returns:
the kernel configurator
Throws:
Throwable - for any error

createKernelController

public KernelController createKernelController()
                                        throws Throwable
Description copied from interface: KernelConfig
Create a kernel controller

Returns:
the kernel controller
Throws:
Throwable - for any error

createKernelEventManager

public KernelEventManager createKernelEventManager()
                                            throws Throwable
Description copied from interface: KernelConfig
Create a kernel event manager

Returns:
the kernel event manager
Throws:
Throwable - for any error

createKernelInitializer

public KernelInitializer createKernelInitializer()
                                          throws Throwable
Description copied from interface: KernelConfig
Create a kernel initializer

Returns:
the kernel initializer
Throws:
Throwable - for any error

createKernelRegistry

public KernelRegistry createKernelRegistry()
                                    throws Throwable
Description copied from interface: KernelConfig
Create a kernel registry

Returns:
the kernel registry
Throws:
Throwable - for any error

createKernelMetaDataRepository

public KernelMetaDataRepository createKernelMetaDataRepository()
                                                        throws Throwable
Description copied from interface: KernelConfig
Create a meta data repository

Returns:
the meta data repository
Throws:
Throwable - for any error

createKernelBeanValidator

public KernelBeanValidator createKernelBeanValidator()
                                              throws Throwable
Description copied from interface: KernelConfig
Create kernel bean validator.

Returns:
the kernel bean validator
Throws:
Throwable - for any error

createDefaultDependencyBuilder

public DependencyBuilder createDefaultDependencyBuilder()
                                                 throws Throwable
Description copied from class: AbstractKernelConfig
Create the default dependency builder

Specified by:
createDefaultDependencyBuilder in class AbstractKernelConfig
Returns:
the type info factory
Throws:
Throwable - for any error

getImplementation

protected Object getImplementation(String type,
                                   String defaultType)
                            throws Throwable
Get the implementation for a type

Parameters:
type - the type
defaultType - the default implementation
Returns:
the implementation object
Throws:
Throwable - for any error

getBeanMetaData

protected BeanMetaData getBeanMetaData(org.jboss.beans.info.spi.BeanInfo info,
                                       String className)
                                throws Exception
Get the bean metadata for the class

Parameters:
info - the bean info
className - the class
Returns:
the metadata
Throws:
Exception - for any error


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.