|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanMetadata
Metadata for a Bean component.
This is specified by the bean
element.
Field Summary | |
---|---|
static java.lang.String |
SCOPE_PROTOTYPE
The bean has prototype scope. |
static java.lang.String |
SCOPE_SINGLETON
The bean has singleton scope. |
Fields inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata |
---|
ACTIVATION_EAGER, ACTIVATION_LAZY |
Method Summary | |
---|---|
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.String |
getScope()
Return the scope for the bean. |
Methods inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata |
---|
getActivation, getDependsOn, getId |
Field Detail |
---|
static final java.lang.String SCOPE_SINGLETON
singleton
scope.
getScope()
,
Constant Field Valuesstatic final java.lang.String SCOPE_PROTOTYPE
prototype
scope.
getScope()
,
Constant Field ValuesMethod Detail |
---|
java.lang.String getClassName()
class
attribute of the bean definition.
null
.java.lang.String getInitMethod()
init-method
attribute of the bean
definition.
null
if no init method is specified.java.lang.String getDestroyMethod()
destroy-method
attribute of the bean
definition.
null
if no destroy method is specified.java.util.List<BeanArgument> getArguments()
argument
elements.
BeanArgument
objects for the factory
method or constructor of the bean. The List is empty if no
arguments are specified for the bean.java.util.List<BeanProperty> getProperties()
property
elements.
BeanProperty
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.java.lang.String getFactoryMethod()
factory-method
attribute of the bean.
null
if no
factory method is specified for the bean.Target getFactoryComponent()
factory-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.
null
if no factory
component is specified.java.lang.String getScope()
null
if the scope has not
been explicitly specified in the bean definition.SCOPE_SINGLETON
,
SCOPE_PROTOTYPE
|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |