Class DSAnnotations

java.lang.Object
aQute.bnd.component.DSAnnotations
All Implemented Interfaces:
AnalyzerPlugin

public class DSAnnotations extends Object implements AnalyzerPlugin
Analyze the class space for any classes that have an OSGi annotation for DS.
  • Constructor Details

    • DSAnnotations

      public DSAnnotations()
  • 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
    • checkVersionConflicts

      private void checkVersionConflicts(Analyzer analyzer, ComponentDef definition, DSAnnotations.VersionSettings settings)
    • makeUnique

      private void makeUnique(MultiMap<String,ComponentDef> definitionsByName, ComponentDef definition)
    • removeOverlapInServiceComponentHeader

      public static List<String> removeOverlapInServiceComponentHeader(Collection<String> names)
    • addServiceCapability

      private void addServiceCapability(ComponentDef definition, Set<String> provides, boolean nouses)
    • addServiceRequirement

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

      private void addExtenderRequirement(Set<String> requires, 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