class SimpleBeanMetadata extends SimpleComponentMetadata implements BeanMetadata
LocalComponentMetadata implementation based on Spring's BeanDefinition.| Modifier and Type | Field and Description |
|---|---|
private java.util.List<BeanArgument> |
arguments |
private Target |
factoryComponent |
private java.lang.String |
factoryMethod |
private java.util.List<BeanProperty> |
properties |
private java.lang.String |
scope |
beanDefinitionSCOPE_PROTOTYPE, SCOPE_SINGLETONACTIVATION_EAGER, ACTIVATION_LAZY| Constructor and Description |
|---|
SimpleBeanMetadata(java.lang.String name,
org.springframework.beans.factory.config.BeanDefinition definition)
Constructs a new
SpringLocalComponentMetadata instance. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<BeanArgument> |
getArguments()
Return the arguments for the factory method or constructor of the bean.
|
java.lang.String |
getClassName()
Return the name of the class specified for the bean.
|
java.lang.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.
|
java.lang.String |
getFactoryMethod()
Return the name of the factory method for the bean.
|
java.lang.String |
getInitMethod()
Return the name of the init method specified for the bean.
|
java.util.List<BeanProperty> |
getProperties()
Return the properties for the bean.
|
java.lang.Class<?> |
getRuntimeClass() |
java.lang.String |
getScope()
Return the scope for the bean.
|
equals, getActivation, getBeanDefinition, getDependsOn, getId, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetActivation, getDependsOn, getIdprivate final java.util.List<BeanArgument> arguments
private final java.util.List<BeanProperty> properties
private final java.lang.String factoryMethod
private final Target factoryComponent
private final java.lang.String scope
public SimpleBeanMetadata(java.lang.String name,
org.springframework.beans.factory.config.BeanDefinition definition)
SpringLocalComponentMetadata instance.name - bean namedefinition - Spring bean definitionpublic java.util.List<BeanArgument> getArguments()
BeanMetadataargument elements.getArguments in interface BeanMetadataBeanArgument objects for the factory
method or constructor of the bean. The List is empty if no
arguments are specified for the bean.public java.lang.String getClassName()
BeanMetadataclass attribute of the bean
definition.getClassName in interface BeanMetadatanull.public java.lang.String getDestroyMethod()
BeanMetadatadestroy-method attribute of the
bean definition.getDestroyMethod in interface BeanMetadatanull if no destroy method is specified.public 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 java.lang.String getFactoryMethod()
BeanMetadatafactory-method attribute of the
bean.getFactoryMethod in interface BeanMetadatanull
if no factory method is specified for the bean.public java.lang.String getInitMethod()
BeanMetadatainit-method attribute of the bean
definition.getInitMethod in interface BeanMetadatanull if no init method is specified.public java.util.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 java.lang.Class<?> getRuntimeClass()
public java.lang.String getScope()
BeanMetadatagetScope in interface BeanMetadataBeanMetadata.SCOPE_SINGLETON,
BeanMetadata.SCOPE_PROTOTYPE