Package aQute.bnd.cdi

Class CDIAnnotations

java.lang.Object
aQute.bnd.cdi.CDIAnnotations
All Implemented Interfaces:
AnalyzerPlugin

public class CDIAnnotations extends Object implements AnalyzerPlugin
Analyze the class space for any classes that have an OSGi annotation for CCR.
  • Field Details

  • Constructor Details

    • CDIAnnotations

      public CDIAnnotations()
  • Method Details

    • analyzeJar

      public boolean analyzeJar(Analyzer analyzer) throws Exception
      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 interface AnalyzerPlugin
      Returns:
      true if the classpace has been modified so that the bundle classpath must be reanalyzed
      Throws:
      Exception
    • addServiceCapability

      private void addServiceCapability(String[] objectClass, Set<String> provides)
    • addServiceRequirement

      private void addServiceRequirement(ReferenceDef ref, MergedRequirement requires)
    • addExtenderRequirement

      private void addExtenderRequirement(Set<String> requires, List<String> beans, Version version)
    • updateHeader

      private void updateHeader(Analyzer analyzer, String name, TreeSet<String> set)
      Updates specified header, sorting and removing duplicates. Destroys contents of set parameter.
      Parameters:
      analyzer -
      name - header name
      set - values to add to header; contents are not preserved.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • findDiscoveryMode

      private Discover findDiscoveryMode(Resource beansResource) throws Exception
      Throws:
      Exception
    • readXMLResource

      private Document readXMLResource(Resource resource) throws Exception
      Throws:
      Exception