com.springsource.util.osgi.manifest
Interface BundleActivationPolicy

All Superinterfaces:
Parameterised, Parseable
All Known Implementing Classes:
StandardBundleActivationPolicy

public interface BundleActivationPolicy
extends Parameterised

Represents a bundle's Bundle-ActivationPolicy header.

Concurrent Semantics
May not be thread-safe.


Nested Class Summary
static class BundleActivationPolicy.Policy
          An enumeration of the legal values for a bundle's activation policy, specified using the Bundle-ActivationPolicy header.
 
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.
 void setActivationPolicy(BundleActivationPolicy.Policy policy)
          Sets the value of the Bundle-ActivationPolicy header.
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parameterised
getAttributes, getDirectives
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parseable
resetFromParseString, toParseString
 

Method Detail

getActivationPolicy

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

Returns:
the value of the Bundle-ActivationPolicy header.

setActivationPolicy

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

Parameters:
policy - the bundle's activation policy.

getExclude

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.

Returns:
the list of exclusions

getInclude

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.

Returns:
the list of inclusions