|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.blueprint.reflect.ComponentMetadataImpl
org.apache.geronimo.blueprint.reflect.BeanMetadataImpl
public class BeanMetadataImpl
Implementation of BeanMetadata
| Field Summary |
|---|
| Fields inherited from class org.apache.geronimo.blueprint.reflect.ComponentMetadataImpl |
|---|
activation, dependsOn, id |
| Fields inherited from interface org.osgi.service.blueprint.reflect.BeanMetadata |
|---|
SCOPE_PROTOTYPE, SCOPE_SINGLETON |
| Fields inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata |
|---|
ACTIVATION_EAGER, ACTIVATION_LAZY |
| Constructor Summary | |
|---|---|
BeanMetadataImpl()
|
|
BeanMetadataImpl(BeanMetadata source)
|
|
| Method Summary | |
|---|---|
void |
addArgument(BeanArgument argument)
|
BeanArgument |
addArgument(Metadata value,
String valueType,
int index)
|
void |
addProperty(BeanProperty property)
|
BeanProperty |
addProperty(String name,
Metadata value)
|
List<BeanArgument> |
getArguments()
Return the arguments for the factory method or constructor of the bean. |
String |
getClassName()
Return the name of the class specified for the bean. |
String |
getDestroyMethod()
Return the name of the destroy method specified for the bean. |
Target |
getFactoryComponent()
Return the Metadata for the factory component on which to invoke the factory method for the bean. |
String |
getFactoryMethod()
Return the name of the factory method for the bean. |
String |
getInitMethod()
Return the name of the init method specified for the bean. |
List<BeanProperty> |
getProperties()
Return the properties for the bean. |
Class |
getRuntimeClass()
Provide an actual class, this overrides the class name if set. |
String |
getScope()
Return the scope for the bean. |
boolean |
isProcessor()
|
void |
removeArgument(BeanArgument argument)
|
void |
removeProperty(BeanProperty property)
|
void |
setArguments(List<BeanArgument> arguments)
|
void |
setClassName(String className)
|
void |
setDestroyMethod(String destroyMethodName)
|
void |
setFactoryComponent(Target factoryComponent)
|
void |
setFactoryMethod(String factoryMethodName)
|
void |
setInitMethod(String initMethodName)
|
void |
setProcessor(boolean processor)
|
void |
setProperties(List<BeanProperty> properties)
|
void |
setRuntimeClass(Class runtimeClass)
|
void |
setScope(String scope)
|
String |
toString()
|
| Methods inherited from class org.apache.geronimo.blueprint.reflect.ComponentMetadataImpl |
|---|
addDependsOn, getActivation, getDependsOn, getId, removeDependsOn, setActivation, setDependsOn, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata |
|---|
getActivation, getDependsOn, getId |
| Methods inherited from interface org.apache.geronimo.blueprint.mutable.MutableComponentMetadata |
|---|
addDependsOn, removeDependsOn, setActivation, setDependsOn, setId |
| Constructor Detail |
|---|
public BeanMetadataImpl()
public BeanMetadataImpl(BeanMetadata source)
| Method Detail |
|---|
public String getClassName()
BeanMetadataclass attribute of the bean
definition.
getClassName in interface BeanMetadatanull.public void setClassName(String className)
setClassName in interface MutableBeanMetadatapublic String getInitMethod()
BeanMetadatainit-method attribute of the bean
definition.
getInitMethod in interface BeanMetadatanull if no init method is specified.public void setInitMethod(String initMethodName)
setInitMethod in interface MutableBeanMetadatapublic String getDestroyMethod()
BeanMetadatadestroy-method attribute of the
bean definition.
getDestroyMethod in interface BeanMetadatanull if no destroy method is specified.public void setDestroyMethod(String destroyMethodName)
setDestroyMethod in interface MutableBeanMetadatapublic List<BeanArgument> getArguments()
BeanMetadataargument elements.
- Specified by:
getArguments in interface BeanMetadata
- Returns:
- An immutable List of
BeanArgument objects for the factory
method or constructor of the bean. The List is empty if no
arguments are specified for the bean.
public void setArguments(List<BeanArgument> arguments)
public void addArgument(BeanArgument argument)
addArgument in interface MutableBeanMetadata
public BeanArgument addArgument(Metadata value,
String valueType,
int index)
addArgument in interface MutableBeanMetadatapublic void removeArgument(BeanArgument argument)
removeArgument in interface MutableBeanMetadatapublic List<BeanProperty> getProperties()
BeanMetadataproperty elements.
getProperties in interface BeanMetadataBeanProperty objects, with one entry
for each property to be injected in the bean. The List is empty
if no property injection is specified for the bean.public void setProperties(List<BeanProperty> properties)
public void addProperty(BeanProperty property)
addProperty in interface MutableBeanMetadata
public BeanProperty addProperty(String name,
Metadata value)
addProperty in interface MutableBeanMetadatapublic void removeProperty(BeanProperty property)
removeProperty in interface MutableBeanMetadatapublic String getFactoryMethod()
BeanMetadatafactory-method attribute of the
bean.
getFactoryMethod in interface BeanMetadatanull
if no factory method is specified for the bean.public void setFactoryMethod(String factoryMethodName)
setFactoryMethod in interface MutableBeanMetadatapublic Target getFactoryComponent()
BeanMetadatafactory-ref attribute of the bean.
When a factory method and factory component have been specified for the
bean, this method returns the factory component on which to invoke the
factory method for the bean. When no factory component has been specified
this method will return null.
When a factory method has been specified for the bean but a factory
component has not been specified, the factory method must be invoked as a
static method on the bean's class.
getFactoryComponent in interface BeanMetadatanull if no factory
component is specified.public void setFactoryComponent(Target factoryComponent)
setFactoryComponent in interface MutableBeanMetadatapublic String getScope()
BeanMetadata
getScope in interface BeanMetadataBeanMetadata.SCOPE_SINGLETON,
BeanMetadata.SCOPE_PROTOTYPEpublic void setScope(String scope)
setScope in interface MutableBeanMetadatapublic Class getRuntimeClass()
ExtendedBeanMetadata
getRuntimeClass in interface ExtendedBeanMetadatanull.public void setRuntimeClass(Class runtimeClass)
setRuntimeClass in interface MutableBeanMetadatapublic boolean isProcessor()
isProcessor in interface ExtendedBeanMetadatapublic void setProcessor(boolean processor)
setProcessor in interface MutableBeanMetadatapublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||