|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequiredBundle
Representation of a single entry in a Require-Bundle
header.
Concurrent Semantics
May not be thread-safe.
Nested Class Summary | |
---|---|
static class |
RequiredBundle.Visibility
Enumeration of the valid values for the header's visibility directive. |
Method Summary | |
---|---|
java.lang.String |
getBundleSymbolicName()
Returns the symbolic name of the bundle that is required, never null . |
VersionRange |
getBundleVersion()
Returns the value of the header's bundle-version attribute. |
Resolution |
getResolution()
Returns the value of the entry's resolution directive. |
RequiredBundle.Visibility |
getVisibility()
Returns the value of the entry's visibility directive. |
void |
setBundleSymbolicName(java.lang.String bundleSymbolicName)
Sets the symbolic name of the bundle that is required. |
void |
setBundleVersion(VersionRange versionRange)
Sets the value of the header's bundle-version directive. |
void |
setResolution(Resolution resolution)
Sets the value of the resolution directive. |
void |
setVisibility(RequiredBundle.Visibility visibility)
Sets the value of the visibility directive. |
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 |
---|
java.lang.String getBundleSymbolicName()
null
.
void setBundleSymbolicName(java.lang.String bundleSymbolicName)
bundleSymbolicName
- the required bundle's symbolic name
java.lang.IllegalArgumentException
- if the given bundle symbolic name is null
Resolution getResolution()
resolution
directive. If no such directive is specified, the
default value of Resolution.MANDATORY
is returned.
void setResolution(Resolution resolution)
resolution
directive. If null
is given, sets the value to
Resolution.MANDATORY
.
resolution
- The resolution directiveRequiredBundle.Visibility getVisibility()
visibility
directive. If no such directive is specified, the
default value of RequiredBundle.Visibility.PRIVATE
is returned.
void setVisibility(RequiredBundle.Visibility visibility)
visibility
directive. If null
is given, sets the value to
RequiredBundle.Visibility.PRIVATE
.
visibility
- The value of the visibility directive.VersionRange getBundleVersion()
bundle-version
attribute. If no such attribute is specified, returns the
default version range of [0, infinity).
bundle-version
attribute.void setBundleVersion(VersionRange versionRange)
bundle-version
directive.
versionRange
- the value for the bundle-version
directive.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |