Package aQute.bnd.cdi
Class CDIAnnotations
java.lang.Object
aQute.bnd.cdi.CDIAnnotations
- All Implemented Interfaces:
AnalyzerPlugin
Analyze the class space for any classes that have an OSGi annotation for CCR.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final DocumentBuilderFactory(package private) static final XPathFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidaddServiceCapability(String[] objectClass, Set<String> provides) private voidaddServiceRequirement(ReferenceDef ref, MergedRequirement requires) booleananalyzeJar(Analyzer analyzer) This plugin is called after analysis.private DiscoverfindDiscoveryMode(Resource beansResource) private DocumentreadXMLResource(Resource resource) toString()private voidupdateHeader(Analyzer analyzer, String name, TreeSet<String> set) Updates specified header, sorting and removing duplicates.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface aQute.bnd.service.AnalyzerPlugin
ordering
-
Field Details
-
dbf
-
xpf
-
beansResourceFilter
-
-
Constructor Details
-
CDIAnnotations
public CDIAnnotations()
-
-
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- Parameters:
analyzer-- Returns:
- true if the classpace has been modified so that the bundle classpath must be reanalyzed
- Throws:
Exception
-
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
-
findDiscoveryMode
- Throws:
Exception
-
readXMLResource
- Throws:
Exception
-