@ConsumerType public interface ComponentMetadata extends NonNullMetadata
BeanMetadata
, ServiceMetadata
and
ServiceReferenceMetadata
.Modifier and Type | Field and Description |
---|---|
static int |
ACTIVATION_EAGER
The component's manager must eagerly activate the component.
|
static int |
ACTIVATION_LAZY
The component's manager must lazily activate the component.
|
Modifier and Type | Method and Description |
---|---|
int |
getActivation()
Return the activation strategy for the component.
|
java.util.List<java.lang.String> |
getDependsOn()
Return the ids of any components listed in a
depends-on attribute
for the component. |
java.lang.String |
getId()
Return the id of the component.
|
static final int ACTIVATION_EAGER
getActivation()
,
Constant Field Valuesstatic final int ACTIVATION_LAZY
getActivation()
,
Constant Field Valuesjava.lang.String getId()
null
if
this is an anonymously defined and/or inlined component.int getActivation()
activation
attribute of a component
definition. If this is not set, then the default-activation
in
the blueprint
element is used. If that is also not set, then the
activation strategy is ACTIVATION_EAGER
.ACTIVATION_EAGER
,
ACTIVATION_LAZY
java.util.List<java.lang.String> getDependsOn()
depends-on
attribute
for the component.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0