aQute.bnd.make
Class ServiceComponent

java.lang.Object
  extended by aQute.bnd.make.ServiceComponent
All Implemented Interfaces:
AnalyzerPlugin

public class ServiceComponent
extends Object
implements AnalyzerPlugin

This class is an analyzer plugin. It looks at the properties and tries to find out if the Service-Component header contains the bnd shortut syntax. If not, the header is copied to the output, if it does, an XML file is created and added to the JAR and the header is modified appropriately.


Field Summary
static String COMPONENT_ACTIVATE
           
static String COMPONENT_CONFIGURATION_POLICY
           
static String COMPONENT_DEACTIVATE
           
static String COMPONENT_DYNAMIC
           
static String COMPONENT_ENABLED
           
static String COMPONENT_FACTORY
           
static String COMPONENT_IMMEDIATE
           
static String COMPONENT_IMPLEMENTATION
           
static String COMPONENT_MODIFIED
           
static String COMPONENT_MULTIPLE
           
static String COMPONENT_OPTIONAL
           
static String COMPONENT_PROPERTIES
           
static String COMPONENT_PROVIDE
           
static String COMPONENT_SERVICEFACTORY
           
static String COMPONENT_VERSION
           
static String[] componentDirectives
           
static String JIDENTIFIER
           
static String NAMESPACE_STEM
           
static Set<String> SET_COMPONENT_DIRECTIVES
           
static Set<String> SET_COMPONENT_DIRECTIVES_1_1
           
 
Constructor Summary
ServiceComponent()
           
 
Method Summary
 boolean analyzeJar(Analyzer analyzer)
          This plugin is called after analysis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE_STEM

public static final String NAMESPACE_STEM
See Also:
Constant Field Values

JIDENTIFIER

public static final String JIDENTIFIER
See Also:
Constant Field Values

COMPONENT_FACTORY

public static final String COMPONENT_FACTORY
See Also:
Constant Field Values

COMPONENT_SERVICEFACTORY

public static final String COMPONENT_SERVICEFACTORY
See Also:
Constant Field Values

COMPONENT_IMMEDIATE

public static final String COMPONENT_IMMEDIATE
See Also:
Constant Field Values

COMPONENT_ENABLED

public static final String COMPONENT_ENABLED
See Also:
Constant Field Values

COMPONENT_DYNAMIC

public static final String COMPONENT_DYNAMIC
See Also:
Constant Field Values

COMPONENT_MULTIPLE

public static final String COMPONENT_MULTIPLE
See Also:
Constant Field Values

COMPONENT_PROVIDE

public static final String COMPONENT_PROVIDE
See Also:
Constant Field Values

COMPONENT_OPTIONAL

public static final String COMPONENT_OPTIONAL
See Also:
Constant Field Values

COMPONENT_PROPERTIES

public static final String COMPONENT_PROPERTIES
See Also:
Constant Field Values

COMPONENT_IMPLEMENTATION

public static final String COMPONENT_IMPLEMENTATION
See Also:
Constant Field Values

COMPONENT_VERSION

public static final String COMPONENT_VERSION
See Also:
Constant Field Values

COMPONENT_CONFIGURATION_POLICY

public static final String COMPONENT_CONFIGURATION_POLICY
See Also:
Constant Field Values

COMPONENT_MODIFIED

public static final String COMPONENT_MODIFIED
See Also:
Constant Field Values

COMPONENT_ACTIVATE

public static final String COMPONENT_ACTIVATE
See Also:
Constant Field Values

COMPONENT_DEACTIVATE

public static final String COMPONENT_DEACTIVATE
See Also:
Constant Field Values

componentDirectives

public static final String[] componentDirectives

SET_COMPONENT_DIRECTIVES

public static final Set<String> SET_COMPONENT_DIRECTIVES

SET_COMPONENT_DIRECTIVES_1_1

public static final Set<String> SET_COMPONENT_DIRECTIVES_1_1
Constructor Detail

ServiceComponent

public ServiceComponent()
Method Detail

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


Copyright © 2010 aQute SARL. All Rights Reserved.