org.jboss.kernel.plugins.config
Class AbstractKernelConfig

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
All Implemented Interfaces:
KernelConfig, KernelEventEmitter, KernelObject
Direct Known Subclasses:
PropertyKernelConfig

public abstract class AbstractKernelConfig
extends AbstractKernelObject
implements KernelConfig

Abstract Kernel configuration.

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

Field Summary
protected  org.jboss.config.spi.Configuration configuration
          The 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
AbstractKernelConfig(org.jboss.config.spi.Configuration configuration)
          Create an abstract kernel configuration
 
Method Summary
protected abstract  DependencyBuilder createDefaultDependencyBuilder()
          Create the default dependency builder
 org.jboss.beans.info.spi.BeanInfo getBeanInfo(Class<?> clazz)
          Get the bean info
 org.jboss.beans.info.spi.BeanInfo getBeanInfo(Class<?> clazz, org.jboss.beans.info.spi.BeanAccessMode mode)
          Get the bean info
 org.jboss.beans.info.spi.BeanInfo getBeanInfo(String className, ClassLoader cl)
          Get the bean info
 org.jboss.beans.info.spi.BeanInfo getBeanInfo(String className, ClassLoader cl, org.jboss.beans.info.spi.BeanAccessMode mode)
          Get the bean info
 org.jboss.beans.info.spi.BeanInfo getBeanInfo(org.jboss.reflect.spi.TypeInfo typeInfo)
          Get the bean info
 org.jboss.beans.info.spi.BeanInfo getBeanInfo(org.jboss.reflect.spi.TypeInfo type, org.jboss.beans.info.spi.BeanAccessMode mode)
          Get the bean info
 org.jboss.reflect.spi.ClassInfo getClassInfo(Class<?> clazz)
          Get the class info for a class
 org.jboss.reflect.spi.ClassInfo getClassInfo(String className, ClassLoader cl)
          Get the class info for a class
 DependencyBuilder getDependencyBuilder()
          Get the dependency builder
 org.jboss.reflect.spi.TypeInfo getTypeInfo(Class<?> clazz)
          Get the type info for a class
 org.jboss.reflect.spi.TypeInfo getTypeInfo(String className, ClassLoader cl)
          Get the type info for a class
 void setBeanInfoFactory(org.jboss.beans.info.spi.BeanInfoFactory beanInfoFactory)
          Set the beanInfoFactory.
 void setClassAdapterFactory(org.jboss.classadapter.spi.ClassAdapterFactory classAdapterFactory)
          Set the classAdapterFactory.
 void setDependencyBuilder(DependencyBuilder dependencyBuilder)
          Set the dependencyBuilder.
 void setJoinpointFactoryBuilder(org.jboss.joinpoint.spi.JoinpointFactoryBuilder joinpointFactoryBuilder)
          Set the joinpointFactoryBuilder.
 void setTypeInfoFactory(org.jboss.reflect.spi.TypeInfoFactory typeInfoFactory)
          Set the typeInfoFactory.
 
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.config.KernelConfig
createKernelBeanValidator, createKernelBus, createKernelConfigurator, createKernelController, createKernelEventManager, createKernelInitializer, createKernelMetaDataRepository, createKernelRegistry
 
Methods inherited from interface org.jboss.kernel.spi.KernelObject
getKernel, setKernel
 
Methods inherited from interface org.jboss.kernel.spi.event.KernelEventEmitter
fireKernelEvent, registerListener, unregisterListener
 

Field Detail

configuration

protected org.jboss.config.spi.Configuration configuration
The configuration

Constructor Detail

AbstractKernelConfig

public AbstractKernelConfig(org.jboss.config.spi.Configuration configuration)
Create an abstract kernel configuration

Parameters:
configuration - the configuration
Method Detail

getBeanInfo

public org.jboss.beans.info.spi.BeanInfo getBeanInfo(String className,
                                                     ClassLoader cl)
                                              throws Throwable
Description copied from interface: KernelConfig
Get the bean info

Specified by:
getBeanInfo in interface KernelConfig
Parameters:
className - the class name
cl - the classloader
Returns:
the bean info
Throws:
Throwable - for any error

getBeanInfo

public org.jboss.beans.info.spi.BeanInfo getBeanInfo(Class<?> clazz)
                                              throws Throwable
Description copied from interface: KernelConfig
Get the bean info

Specified by:
getBeanInfo in interface KernelConfig
Parameters:
clazz - the class
Returns:
the bean info
Throws:
Throwable - for any error

getBeanInfo

public org.jboss.beans.info.spi.BeanInfo getBeanInfo(org.jboss.reflect.spi.TypeInfo typeInfo)
                                              throws Throwable
Description copied from interface: KernelConfig
Get the bean info

Specified by:
getBeanInfo in interface KernelConfig
Parameters:
typeInfo - the type info
Returns:
the bean info
Throws:
Throwable - for any error

getBeanInfo

public org.jboss.beans.info.spi.BeanInfo getBeanInfo(String className,
                                                     ClassLoader cl,
                                                     org.jboss.beans.info.spi.BeanAccessMode mode)
                                              throws Throwable
Description copied from interface: KernelConfig
Get the bean info

Specified by:
getBeanInfo in interface KernelConfig
Parameters:
className - the class name
cl - the classloader
mode - the access mode
Returns:
the bean info
Throws:
Throwable - for any error

getBeanInfo

public org.jboss.beans.info.spi.BeanInfo getBeanInfo(Class<?> clazz,
                                                     org.jboss.beans.info.spi.BeanAccessMode mode)
                                              throws Throwable
Description copied from interface: KernelConfig
Get the bean info

Specified by:
getBeanInfo in interface KernelConfig
Parameters:
clazz - the class
mode - the access mode
Returns:
the bean info
Throws:
Throwable - for any error

getBeanInfo

public org.jboss.beans.info.spi.BeanInfo getBeanInfo(org.jboss.reflect.spi.TypeInfo type,
                                                     org.jboss.beans.info.spi.BeanAccessMode mode)
                                              throws Throwable
Description copied from interface: KernelConfig
Get the bean info

Specified by:
getBeanInfo in interface KernelConfig
Parameters:
type - the type info
mode - the access mode
Returns:
the bean info
Throws:
Throwable - for any error

getTypeInfo

public org.jboss.reflect.spi.TypeInfo getTypeInfo(String className,
                                                  ClassLoader cl)
                                           throws Throwable
Description copied from interface: KernelConfig
Get the type info for a class

Specified by:
getTypeInfo in interface KernelConfig
Parameters:
className - the class name
cl - the classloader
Returns:
the type info
Throws:
Throwable - for any error

getTypeInfo

public org.jboss.reflect.spi.TypeInfo getTypeInfo(Class<?> clazz)
                                           throws Throwable
Description copied from interface: KernelConfig
Get the type info for a class

Specified by:
getTypeInfo in interface KernelConfig
Parameters:
clazz - the class
Returns:
the type info
Throws:
Throwable - for any error

getClassInfo

public org.jboss.reflect.spi.ClassInfo getClassInfo(String className,
                                                    ClassLoader cl)
                                             throws Throwable
Description copied from interface: KernelConfig
Get the class info for a class

Specified by:
getClassInfo in interface KernelConfig
Parameters:
className - the class name
cl - the classloader
Returns:
the class info
Throws:
Throwable - for any error

getClassInfo

public org.jboss.reflect.spi.ClassInfo getClassInfo(Class<?> clazz)
                                             throws Throwable
Description copied from interface: KernelConfig
Get the class info for a class

Specified by:
getClassInfo in interface KernelConfig
Parameters:
clazz - the class
Returns:
the class info
Throws:
Throwable - for any error

setBeanInfoFactory

public void setBeanInfoFactory(org.jboss.beans.info.spi.BeanInfoFactory beanInfoFactory)
Set the beanInfoFactory.

Parameters:
beanInfoFactory - the beanInfoFactory.
Throws:
SecurityException - if you don't have the ConfigurationPermission

setClassAdapterFactory

public void setClassAdapterFactory(org.jboss.classadapter.spi.ClassAdapterFactory classAdapterFactory)
Set the classAdapterFactory.

Parameters:
classAdapterFactory - the classAdapterFactory.
Throws:
SecurityException - if you don't have the ConfigurationPermission

setTypeInfoFactory

public void setTypeInfoFactory(org.jboss.reflect.spi.TypeInfoFactory typeInfoFactory)
Set the typeInfoFactory.

Parameters:
typeInfoFactory - the typeInfoFactory.
Throws:
SecurityException - if you don't have the ConfigurationPermission

setJoinpointFactoryBuilder

public void setJoinpointFactoryBuilder(org.jboss.joinpoint.spi.JoinpointFactoryBuilder joinpointFactoryBuilder)
Set the joinpointFactoryBuilder.

Parameters:
joinpointFactoryBuilder - the joinpointFactoryBuilder.
Throws:
SecurityException - if you don't have the ConfigurationPermission

getDependencyBuilder

public DependencyBuilder getDependencyBuilder()
Get the dependency builder

Specified by:
getDependencyBuilder in interface KernelConfig
Returns:
the dependency builder

setDependencyBuilder

public void setDependencyBuilder(DependencyBuilder dependencyBuilder)
Set the dependencyBuilder.

Parameters:
dependencyBuilder - the dependencyBuilder.
Throws:
SecurityException - if you don't have the ConfigurationPermission

createDefaultDependencyBuilder

protected abstract DependencyBuilder createDefaultDependencyBuilder()
                                                             throws Throwable
Create the default dependency builder

Returns:
the type info factory
Throws:
Throwable - for any error


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