Interface ComponentMetadata
- All Superinterfaces:
Metadata,NonNullMetadata
- All Known Subinterfaces:
BeanMetadata,ReferenceListMetadata,ReferenceMetadata,ServiceMetadata,ServiceReferenceMetadata
Metadata for managed components. This is the base type for
BeanMetadata, ServiceMetadata and
ServiceReferenceMetadata.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe component's manager must eagerly activate the component.static final intThe component's manager must lazily activate the component. -
Method Summary
Modifier and TypeMethodDescriptionintReturn the activation strategy for the component.Return the ids of any components listed in adepends-onattribute for the component.getId()Return the id of the component.
-
Field Details
-
ACTIVATION_EAGER
static final int ACTIVATION_EAGERThe component's manager must eagerly activate the component.- See Also:
-
ACTIVATION_LAZY
static final int ACTIVATION_LAZYThe component's manager must lazily activate the component.- See Also:
-
-
Method Details
-
getId
String getId()Return the id of the component.- Returns:
- The id of the component. The component id can be
nullif this is an anonymously defined and/or inlined component.
-
getActivation
int getActivation()Return the activation strategy for the component. This is specified by theactivationattribute of a component definition. If this is not set, then thedefault-activationin theblueprintelement is used. If that is also not set, then the activation strategy isACTIVATION_EAGER.- Returns:
- The activation strategy for the component.
- See Also:
-
getDependsOn
Return the ids of any components listed in adepends-onattribute for the component.- Returns:
- An immutable List of component ids that are explicitly declared as a dependency, or an empty List if none.
-