Package aQute.bnd.component
Class DSAnnotations
java.lang.Object
aQute.bnd.component.DSAnnotations
- All Implemented Interfaces:
AnalyzerPlugin
Analyze the class space for any classes that have an OSGi annotation for DS.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
(package private) static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addExtenderRequirement
(Set<String> requires, Version version) private void
addServiceCapability
(ComponentDef definition, Set<String> provides, boolean nouses) private void
addServiceRequirement
(ReferenceDef ref, MergedRequirement requires) boolean
analyzeJar
(Analyzer analyzer) This plugin is called after analysis.private void
checkVersionConflicts
(Analyzer analyzer, ComponentDef definition, DSAnnotations.VersionSettings settings) private void
makeUnique
(MultiMap<String, ComponentDef> definitionsByName, ComponentDef definition) toString()
private void
updateHeader
(Analyzer analyzer, String name, TreeSet<String> set) Updates specified header, sorting and removing duplicates.
-
Constructor Details
-
DSAnnotations
public DSAnnotations()
-
-
Method Details
-
analyzeJar
Description copied from interface:AnalyzerPlugin
This plugin is called after analysis. The plugin is free to modify the jar and/or change the classpath information (see referred, contained). This plugin is called after analysis of the JAR but before manifest generation.- Specified by:
analyzeJar
in interfaceAnalyzerPlugin
- Returns:
- true if the classpace has been modified so that the bundle classpath must be reanalyzed
- Throws:
Exception
-
checkVersionConflicts
private void checkVersionConflicts(Analyzer analyzer, ComponentDef definition, DSAnnotations.VersionSettings settings) -
makeUnique
-
removeOverlapInServiceComponentHeader
-
addServiceCapability
-
addServiceRequirement
-
addExtenderRequirement
-
updateHeader
Updates specified header, sorting and removing duplicates. Destroys contents of set parameter.- Parameters:
analyzer
-name
- header nameset
- values to add to header; contents are not preserved.
-
toString
-