|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.beans.metadata.plugins.factory.GenericBeanFactory
public class GenericBeanFactory
Collection metadata.
Field Summary | |
---|---|
protected String |
bean
The bean class name |
protected ClassLoaderMetaData |
classLoader
The classloader |
protected KernelConfigurator |
configurator
The configurator |
protected ConstructorMetaData |
constructor
The constructor metadata |
protected LifecycleMetaData |
create
The create lifecycle method |
protected Map |
properties
The properties Map |
protected LifecycleMetaData |
start
The start lifecycle method |
Constructor Summary | |
---|---|
GenericBeanFactory(KernelConfigurator configurator)
Create a new generic bean factory |
Method Summary | |
---|---|
Object |
createBean()
Create a new bean |
String |
getBean()
Get the bean name |
ClassLoaderMetaData |
getClassLoader()
Get the classLoader. |
ConstructorMetaData |
getConstructor()
Get the constructor metadata |
LifecycleMetaData |
getCreate()
Get the create. |
Map |
getProperties()
Get the properties |
LifecycleMetaData |
getStart()
Get the start. |
protected void |
invokeLifecycle(String methodName,
LifecycleMetaData lifecycle,
BeanInfo info,
ClassLoader cl,
Object target)
Invoke a lifecycle method |
void |
setBean(String bean)
Set the bean name |
void |
setClassLoader(ClassLoaderMetaData classLoader)
Set the classLoader. |
void |
setConstructor(ConstructorMetaData constructor)
Set the constructor metadata |
void |
setCreate(LifecycleMetaData create)
Set the create. |
void |
setProperties(Map properties)
Set the properties |
void |
setStart(LifecycleMetaData start)
Set the start. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected KernelConfigurator configurator
protected String bean
protected ClassLoaderMetaData classLoader
protected ConstructorMetaData constructor
protected Map properties
protected LifecycleMetaData create
protected LifecycleMetaData start
Constructor Detail |
---|
public GenericBeanFactory(KernelConfigurator configurator)
configurator
- the configuratorMethod Detail |
---|
public Object createBean() throws Throwable
Throwable
- for any errorpublic String getBean()
public void setBean(String bean)
bean
- the bean namepublic ClassLoaderMetaData getClassLoader()
public void setClassLoader(ClassLoaderMetaData classLoader)
classLoader
- the classLoader.public ConstructorMetaData getConstructor()
public void setConstructor(ConstructorMetaData constructor)
constructor
- the constructor metadatapublic Map getProperties()
public void setProperties(Map properties)
properties
- the properties Mappublic LifecycleMetaData getCreate()
public void setCreate(LifecycleMetaData create)
create
- the create.public LifecycleMetaData getStart()
public void setStart(LifecycleMetaData start)
start
- the start.protected void invokeLifecycle(String methodName, LifecycleMetaData lifecycle, BeanInfo info, ClassLoader cl, Object target) throws Throwable
methodName
- the default method namelifecycle
- the lifecycleinfo
- the bean infocl
- the classloadertarget
- the target
Throwable
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |