Package aQute.bnd.component
Class ComponentDef
java.lang.Object
aQute.bnd.xmlattribute.ExtensionDef
aQute.bnd.component.ComponentDef
This class just holds the information for the component, implementation, and
service/provide elements. The
prepare(Analyzer)
method will check if
things are ok and the getTag()
method returns a tag if the prepare
method returns without any errors. The class uses ReferenceDef
to
hold the references.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
private final Analyzer
(package private) String[]
(package private) ConfigurationPolicy
(package private) String
(package private) Boolean
(package private) String
(package private) final PropertiesDef
(package private) final PropertyDef
(package private) Boolean
(package private) Descriptors.TypeRef
(package private) Integer
(package private) String
(package private) String
(package private) static final String
(package private) final PropertiesDef
(package private) final PropertyDef
This is an alias to the PropertyDef object inpropertyDefs
under thePROPERTYDEF_COMPONENT
key.(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) final SortedMap<String,
PropertyDef> We use a SortedMap and a key set which controls the ordering of the generated properties.(package private) final Map<String,
ReferenceDef> (package private) ServiceScope
(package private) Descriptors.TypeRef[]
(package private) Version
(package private) String
(package private) String
-
Constructor Summary
ConstructorsConstructorDescriptionComponentDef
(Analyzer analyzer, XMLAttributeFinder finder, Version minVersion) -
Method Summary
Modifier and TypeMethodDescription(package private) String
(package private) Tag
getTag()
Returns a tag describing the component element.private String
(package private) static <T extends Comparable<T>>
Tmax
(T a, T b) (package private) void
Called to prepare.private void
prepareVersion
(Analyzer analyzer) (package private) void
(package private) void
updateVersion
(Version version, String reason) Methods inherited from class aQute.bnd.xmlattribute.ExtensionDef
addAttributes, addExtensionAttribute, addNamespaces
-
Field Details
-
NAMESPACE_STEM
- See Also:
-
propertyDefs
We use a SortedMap and a key set which controls the ordering of the generated properties. -
PROPERTYDEF_CONSTRUCTORFORMAT
- See Also:
-
PROPERTYDEF_FIELDFORMAT
- See Also:
-
PROPERTYDEF_ACTIVATEFORMAT
- See Also:
-
PROPERTYDEF_MODIFIEDFORMAT
- See Also:
-
PROPERTYDEF_DEACTIVATEFORMAT
- See Also:
-
PROPERTYDEF_ANNOTATIONFORMAT
- See Also:
-
PROPERTYDEF_COMPONENT
- See Also:
-
property
This is an alias to the PropertyDef object inpropertyDefs
under thePROPERTYDEF_COMPONENT
key. -
properties
-
factoryProperty
-
factoryProperties
-
references
-
version
Version version -
versionReason
String versionReason -
name
String name -
factory
String factory -
immediate
Boolean immediate -
scope
ServiceScope scope -
configurationPolicy
ConfigurationPolicy configurationPolicy -
implementation
Descriptors.TypeRef implementation -
service
Descriptors.TypeRef[] service -
activate
String activate -
activation_fields
-
deactivate
String deactivate -
modified
String modified -
enabled
Boolean enabled -
xmlns
String xmlns -
configurationPid
String[] configurationPid -
init
Integer init -
analyzer
-
-
Constructor Details
-
ComponentDef
-
-
Method Details
-
effectiveName
String effectiveName() -
prepare
Called to prepare. If will look for any errors or inconsistencies in the setup.- Parameters:
analyzer
- the analyzer to report errors and create references- Throws:
Exception
-
prepareVersion
- Throws:
Exception
-
sortReferences
void sortReferences() -
getTag
Tag getTag()Returns a tag describing the component element.- Returns:
- a component element
-
map$
-
updateVersion
-
max
-