Class SpringComponent

java.lang.Object
aQute.lib.spring.SpringComponent
All Implemented Interfaces:
AnalyzerPlugin

public class SpringComponent extends Object implements AnalyzerPlugin
This component is called when we find a resource in the META-INF/*.xml pattern. We parse the resource and and the imports to the builder. Parsing is done with XSLT (first time I see the use of having XML for the Spring configuration files!).
  • Field Details

    • transformer

      static Transformer transformer
    • SPRING_SOURCE

      private static final Pattern SPRING_SOURCE
    • QN

      private static final Pattern QN
  • Constructor Details

    • SpringComponent

      public SpringComponent()
  • Method Details

    • analyze

      public static Set<CharSequence> analyze(InputStream in) throws Exception
      Throws:
      Exception
    • 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