com.springsource.util.osgi.manifest.internal
Class StandardBundleActivationPolicy

java.lang.Object
  extended by com.springsource.util.osgi.manifest.internal.BaseParameterised
      extended by com.springsource.util.osgi.manifest.internal.StandardBundleActivationPolicy
All Implemented Interfaces:
BundleActivationPolicy, Parameterised, Parseable

 class StandardBundleActivationPolicy
extends BaseParameterised
implements BundleActivationPolicy


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.springsource.util.osgi.manifest.BundleActivationPolicy
BundleActivationPolicy.Policy
 
Field Summary
 
Fields inherited from class com.springsource.util.osgi.manifest.internal.BaseParameterised
name
 
Constructor Summary
StandardBundleActivationPolicy(HeaderParser parser)
           
 
Method Summary
 BundleActivationPolicy.Policy getActivationPolicy()
          Returns the value of the Bundle-ActivationPolicy header.
 java.util.List<java.lang.String> getExclude()
          Returns a list of the class names specified in the header's exclude directive.
 java.util.List<java.lang.String> getInclude()
          Returns a list of the class names specified in the header's include directive.
(package private)  HeaderDeclaration parse(HeaderParser parser, java.lang.String parseString)
           
 void setActivationPolicy(BundleActivationPolicy.Policy policy)
          Sets the value of the Bundle-ActivationPolicy header.
 
Methods inherited from class com.springsource.util.osgi.manifest.internal.BaseParameterised
equals, getAttributes, getDirectives, hashCode, resetFromParseString, toParseString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parameterised
getAttributes, getDirectives
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parseable
resetFromParseString, toParseString
 

Constructor Detail

StandardBundleActivationPolicy

StandardBundleActivationPolicy(HeaderParser parser)
Method Detail

parse

HeaderDeclaration parse(HeaderParser parser,
                        java.lang.String parseString)
Specified by:
parse in class BaseParameterised

getActivationPolicy

public BundleActivationPolicy.Policy getActivationPolicy()
Returns the value of the Bundle-ActivationPolicy header. If no header is specified returns the default value of BundleActivationPolicy.Policy.EAGER.

Specified by:
getActivationPolicy in interface BundleActivationPolicy
Returns:
the value of the Bundle-ActivationPolicy header.

setActivationPolicy

public void setActivationPolicy(BundleActivationPolicy.Policy policy)
Sets the value of the Bundle-ActivationPolicy header.

Specified by:
setActivationPolicy in interface BundleActivationPolicy
Parameters:
policy - the bundle's activation policy.

getExclude

public java.util.List<java.lang.String> getExclude()
Returns a list of the class names specified in the header's exclude directive. Returns an empty list if the header has no exclude directive.

Specified by:
getExclude in interface BundleActivationPolicy
Returns:
the list of exclusions

getInclude

public java.util.List<java.lang.String> getInclude()
Returns a list of the class names specified in the header's include directive. Returns an empty list if the header has no include directive.

Specified by:
getInclude in interface BundleActivationPolicy
Returns:
the list of inclusions