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 void
private void
addServiceCapability
(String[] objectClass, Set<String> provides) private void
addServiceRequirement
(ReferenceDef ref, MergedRequirement requires) boolean
analyzeJar
(Analyzer analyzer) This plugin is called after analysis.private Discover
findDiscoveryMode
(Resource beansResource) private Document
readXMLResource
(Resource resource) toString()
private void
updateHeader
(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, wait
Methods 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: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
-
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
-