org.jboss.beans.metadata.spi.factory
Class GenericBeanFactoryMetaData

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.beans.metadata.spi.factory.GenericBeanFactoryMetaData
All Implemented Interfaces:
Serializable, Cloneable, BeanMetaDataFactory, org.jboss.util.JBossInterface
Direct Known Subclasses:
AspectManagerAwareBeanMetaDataFactory, LoaderRepositoryBeanMetaDataFactory

public class GenericBeanFactoryMetaData
extends org.jboss.util.JBossObject
implements BeanMetaDataFactory, Serializable

GenericBeanFactoryMetaData.

Version:
$Revision: 59429 $
Author:
Adrian Brock, Ales Justin
See Also:
Serialized Form

Field Summary
protected  org.jboss.beans.info.spi.BeanAccessMode accessMode
          The access mode
protected  Set<AliasMetaData> aliases
          The aliases
protected  Set<AnnotationMetaData> annotations
          The annotations
protected  String bean
          The bean class name
protected  ClassLoaderMetaData classLoader
          The classloader
protected  ConstructorMetaData constructor
          The constructor metadata
protected  LifecycleMetaData create
          The create lifecycle method
protected  Set<DemandMetaData> demands
          The demands
protected  Set<DependencyMetaData> depends
          The depends
protected  String factoryClass
          The bean factory class name
protected  List<CallbackMetaData> installCallbacks
          The install callbacks
protected  List<InstallMetaData> installs
          The installs
protected  ControllerMode mode
          The controller mode
protected  String name
          The name
protected  Set<PropertyMetaData> properties
          The properties Map
protected  LifecycleMetaData start
          The start lifecycle method
protected  Set<SupplyMetaData> supplies
          The supplies
protected  List<CallbackMetaData> uninstallCallbacks
          The uninstall callbacks
protected  List<InstallMetaData> uninstalls
          The uninstalls
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
GenericBeanFactoryMetaData()
           
GenericBeanFactoryMetaData(String name, String bean)
           
 
Method Summary
 org.jboss.beans.info.spi.BeanAccessMode getAccessMode()
          Get the access mode.
 Set<AliasMetaData> getAliases()
          Get the aliases
 Set<AnnotationMetaData> getAnnotations()
          Get the annotations
 String getBean()
          Get the bean class
 BeanMetaData getBeanMetaData()
           
 List<BeanMetaData> getBeans()
          Get the beans
 ClassLoaderMetaData getClassLoader()
          Get the classloader
 ConstructorMetaData getConstructor()
          Get the constructor
 LifecycleMetaData getCreate()
          Get the create
 Set<DemandMetaData> getDemands()
          Get the demans
 Set<DependencyMetaData> getDepends()
          Get the dependencies
 String getFactoryClass()
          Get the factory class.
 List<CallbackMetaData> getInstallCallbacks()
          Get the install callbacks
 List<InstallMetaData> getInstalls()
          Get the installs
 ControllerMode getMode()
          Get the mode
 String getName()
          Get the name
 Set<PropertyMetaData> getProperties()
          Get the properties
 LifecycleMetaData getStart()
          Get the start
 Set<SupplyMetaData> getSupplies()
          Get the supples
 List<CallbackMetaData> getUninstallCallbacks()
          Get the uninstall callbacks
 List<InstallMetaData> getUninstalls()
          Get the uninstalls
 void setAccessMode(org.jboss.beans.info.spi.BeanAccessMode accessMode)
          Set the access mode.
 void setAliases(Set<AliasMetaData> aliases)
          Set the aliases
 void setAnnotations(Set<AnnotationMetaData> annotations)
          Set the annotations
 void setBean(String bean)
          Set the bean class
 void setClassLoader(ClassLoaderMetaData classLoader)
          Set the classloader
 void setConstructor(ConstructorMetaData constructor)
          Set the constructor
 void setCreate(LifecycleMetaData create)
          Set the create
 void setDemands(Set<DemandMetaData> demands)
          Set the demands
 void setDepends(Set<DependencyMetaData> depends)
          Set the dependencies
 void setFactoryClass(String factoryClass)
          Set the factory class.
 void setInstallCallbacks(List<CallbackMetaData> installCallbacks)
          Set the install callbacks
 void setInstalls(List<InstallMetaData> installs)
          Set the installs
 void setMode(ControllerMode mode)
          Set the mode
 void setName(String name)
          Set the bean name
 void setProperties(Set<PropertyMetaData> properties)
          Set the properties
 void setStart(LifecycleMetaData start)
          Set the start
 void setSupplies(Set<SupplyMetaData> supplies)
          Set the supplies
 void setUninstallCallbacks(List<CallbackMetaData> uninstallCallbacks)
          Set the uninstall callbacks
 void setUninstalls(List<InstallMetaData> uninstalls)
          Set the uninstalls
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name
The name


bean

protected String bean
The bean class name


factoryClass

protected String factoryClass
The bean factory class name


accessMode

protected org.jboss.beans.info.spi.BeanAccessMode accessMode
The access mode


mode

protected ControllerMode mode
The controller mode


annotations

protected Set<AnnotationMetaData> annotations
The annotations


aliases

protected Set<AliasMetaData> aliases
The aliases


classLoader

protected ClassLoaderMetaData classLoader
The classloader


constructor

protected ConstructorMetaData constructor
The constructor metadata


properties

protected Set<PropertyMetaData> properties
The properties Map


create

protected LifecycleMetaData create
The create lifecycle method


start

protected LifecycleMetaData start
The start lifecycle method


depends

protected Set<DependencyMetaData> depends
The depends


demands

protected Set<DemandMetaData> demands
The demands


supplies

protected Set<SupplyMetaData> supplies
The supplies


installs

protected List<InstallMetaData> installs
The installs


uninstalls

protected List<InstallMetaData> uninstalls
The uninstalls


installCallbacks

protected List<CallbackMetaData> installCallbacks
The install callbacks


uninstallCallbacks

protected List<CallbackMetaData> uninstallCallbacks
The uninstall callbacks

Constructor Detail

GenericBeanFactoryMetaData

public GenericBeanFactoryMetaData()

GenericBeanFactoryMetaData

public GenericBeanFactoryMetaData(String name,
                                  String bean)
Method Detail

getName

public String getName()
Get the name

Returns:
the name

setName

public void setName(String name)
Set the bean name

Parameters:
name - the name

getBean

public String getBean()
Get the bean class

Returns:
the bean class

setBean

public void setBean(String bean)
Set the bean class

Parameters:
bean - the bean class

getFactoryClass

public String getFactoryClass()
Get the factory class.

Returns:
the factory class

setFactoryClass

public void setFactoryClass(String factoryClass)
Set the factory class. Note: this class param must either extend GenericBeanFactory or have the same constructor and properties aka 'callbacks'.

Parameters:
factoryClass - the factory class

getAliases

public Set<AliasMetaData> getAliases()
Get the aliases

Returns:
the aliases

setAliases

public void setAliases(Set<AliasMetaData> aliases)
Set the aliases

Parameters:
aliases - the aliases

getAccessMode

public org.jboss.beans.info.spi.BeanAccessMode getAccessMode()
Get the access mode.

Returns:
the access mode

setAccessMode

public void setAccessMode(org.jboss.beans.info.spi.BeanAccessMode accessMode)
Set the access mode.

Parameters:
accessMode - the access mode

getMode

public ControllerMode getMode()
Get the mode

Returns:
the mode

setMode

public void setMode(ControllerMode mode)
Set the mode

Parameters:
mode - the mode

getAnnotations

public Set<AnnotationMetaData> getAnnotations()
Get the annotations

Returns:
the annotations

setAnnotations

public void setAnnotations(Set<AnnotationMetaData> annotations)
Set the annotations

Parameters:
annotations - the annotations

getClassLoader

public ClassLoaderMetaData getClassLoader()
Get the classloader

Returns:
the classloader

setClassLoader

public void setClassLoader(ClassLoaderMetaData classLoader)
Set the classloader

Parameters:
classLoader - the classloader

getConstructor

public ConstructorMetaData getConstructor()
Get the constructor

Returns:
the constructor

setConstructor

public void setConstructor(ConstructorMetaData constructor)
Set the constructor

Parameters:
constructor - the constructor

getCreate

public LifecycleMetaData getCreate()
Get the create

Returns:
the create

setCreate

public void setCreate(LifecycleMetaData create)
Set the create

Parameters:
create - the create

getProperties

public Set<PropertyMetaData> getProperties()
Get the properties

Returns:
the properties

setProperties

public void setProperties(Set<PropertyMetaData> properties)
Set the properties

Parameters:
properties - the properties

getStart

public LifecycleMetaData getStart()
Get the start

Returns:
the start

setStart

public void setStart(LifecycleMetaData start)
Set the start

Parameters:
start - the start

getDemands

public Set<DemandMetaData> getDemands()
Get the demans

Returns:
the demands

setDemands

public void setDemands(Set<DemandMetaData> demands)
Set the demands

Parameters:
demands - the demands

getDepends

public Set<DependencyMetaData> getDepends()
Get the dependencies

Returns:
the dependencies

setDepends

public void setDepends(Set<DependencyMetaData> depends)
Set the dependencies

Parameters:
depends - the dependencies

getInstallCallbacks

public List<CallbackMetaData> getInstallCallbacks()
Get the install callbacks

Returns:
the install callbacks

setInstallCallbacks

public void setInstallCallbacks(List<CallbackMetaData> installCallbacks)
Set the install callbacks

Parameters:
installCallbacks - the install callbacks

getInstalls

public List<InstallMetaData> getInstalls()
Get the installs

Returns:
the installs

setInstalls

public void setInstalls(List<InstallMetaData> installs)
Set the installs

Parameters:
installs - the installs

getSupplies

public Set<SupplyMetaData> getSupplies()
Get the supples

Returns:
the supplies

setSupplies

public void setSupplies(Set<SupplyMetaData> supplies)
Set the supplies

Parameters:
supplies - the supplies

getUninstallCallbacks

public List<CallbackMetaData> getUninstallCallbacks()
Get the uninstall callbacks

Returns:
the uninstall callbacks

setUninstallCallbacks

public void setUninstallCallbacks(List<CallbackMetaData> uninstallCallbacks)
Set the uninstall callbacks

Parameters:
uninstallCallbacks - the uninstall callbacls

getUninstalls

public List<InstallMetaData> getUninstalls()
Get the uninstalls

Returns:
the uninstalls

setUninstalls

public void setUninstalls(List<InstallMetaData> uninstalls)
Set the uninstalls

Parameters:
uninstalls - the uninstalls

getBeans

public List<BeanMetaData> getBeans()
Description copied from interface: BeanMetaDataFactory
Get the beans

Specified by:
getBeans in interface BeanMetaDataFactory
Returns:
a List

getBeanMetaData

public BeanMetaData getBeanMetaData()


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