Package aQute.bnd.component
Class ComponentDef
- java.lang.Object
-
- aQute.bnd.xmlattribute.ExtensionDef
-
- aQute.bnd.component.ComponentDef
-
class ComponentDef extends ExtensionDef
This class just holds the information for the component, implementation, and service/provide elements. Theprepare(Analyzer)
method will check if things are ok and thegetTag()
method returns a tag if the prepare method returns without any errors. The class usesReferenceDef
to hold the references.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
activate
(package private) java.lang.String[]
configurationPid
(package private) org.osgi.service.component.annotations.ConfigurationPolicy
configurationPolicy
(package private) java.lang.String
deactivate
(package private) java.lang.Boolean
enabled
(package private) java.lang.String
factory
(package private) java.lang.Boolean
immediate
(package private) Descriptors.TypeRef
implementation
(package private) static java.lang.String
MARKER
(package private) java.lang.String
modified
(package private) java.lang.String
name
(package private) static java.lang.String
NAMESPACE_STEM
(package private) java.util.List<java.lang.String>
properties
(package private) MultiMap<java.lang.String,java.lang.String>
property
(package private) java.util.List<Tag>
propertyTags
(package private) java.util.Map<java.lang.String,java.lang.String>
propertyType
(package private) java.util.Map<java.lang.String,ReferenceDef>
references
(package private) org.osgi.service.component.annotations.ServiceScope
scope
(package private) Descriptors.TypeRef[]
service
(package private) Version
version
(package private) java.lang.String
xmlns
-
Fields inherited from class aQute.bnd.xmlattribute.ExtensionDef
attributes, finder
-
-
Constructor Summary
Constructors Constructor Description ComponentDef(XMLAttributeFinder finder, Version minVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
check(java.lang.String type, java.lang.String v, Analyzer analyzer)
(package private) java.lang.String
effectiveName()
(package private) Tag
getTag()
Returns a tag describing the component element.(package private) static <T extends java.lang.Comparable<T>>
Tmax(T a, T b)
(package private) void
prepare(Analyzer analyzer)
Called to prepare.private void
prepareVersion(Analyzer analyzer)
(package private) void
sortReferences()
(package private) void
updateVersion(Version version)
-
Methods inherited from class aQute.bnd.xmlattribute.ExtensionDef
addAttributes, addExtensionAttribute, addNamespaces
-
-
-
-
Field Detail
-
NAMESPACE_STEM
static final java.lang.String NAMESPACE_STEM
- See Also:
- Constant Field Values
-
MARKER
static final java.lang.String MARKER
-
properties
final java.util.List<java.lang.String> properties
-
property
final MultiMap<java.lang.String,java.lang.String> property
-
propertyType
final java.util.Map<java.lang.String,java.lang.String> propertyType
-
references
final java.util.Map<java.lang.String,ReferenceDef> references
-
version
Version version
-
name
java.lang.String name
-
factory
java.lang.String factory
-
immediate
java.lang.Boolean immediate
-
scope
org.osgi.service.component.annotations.ServiceScope scope
-
configurationPolicy
org.osgi.service.component.annotations.ConfigurationPolicy configurationPolicy
-
implementation
Descriptors.TypeRef implementation
-
service
Descriptors.TypeRef[] service
-
activate
java.lang.String activate
-
deactivate
java.lang.String deactivate
-
modified
java.lang.String modified
-
enabled
java.lang.Boolean enabled
-
xmlns
java.lang.String xmlns
-
configurationPid
java.lang.String[] configurationPid
-
propertyTags
java.util.List<Tag> propertyTags
-
-
Constructor Detail
-
ComponentDef
public ComponentDef(XMLAttributeFinder finder, Version minVersion)
-
-
Method Detail
-
effectiveName
java.lang.String effectiveName()
-
prepare
void prepare(Analyzer analyzer) throws java.lang.Exception
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:
java.lang.Exception
-
prepareVersion
private void prepareVersion(Analyzer analyzer) throws java.lang.Exception
- Throws:
java.lang.Exception
-
sortReferences
void sortReferences()
-
getTag
Tag getTag()
Returns a tag describing the component element.- Returns:
- a component element
-
check
private java.lang.String check(java.lang.String type, java.lang.String v, Analyzer analyzer)
-
updateVersion
void updateVersion(Version version)
-
max
static <T extends java.lang.Comparable<T>> T max(T a, T b)
-
-