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 voidaddExtenderRequirement(Set<String> requires, Version version) private voidaddServiceCapability(ComponentDef definition, Set<String> provides, boolean nouses) private voidaddServiceRequirement(ReferenceDef ref, MergedRequirement requires) booleananalyzeJar(Analyzer analyzer) This plugin is called after analysis.private voidcheckVersionConflicts(Analyzer analyzer, ComponentDef definition, DSAnnotations.VersionSettings settings) private voidmakeUnique(MultiMap<String, ComponentDef> definitionsByName, ComponentDef definition) toString()private voidupdateHeader(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:AnalyzerPluginThis 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:
analyzeJarin 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
-