com.springsource.util.osgi.manifest.internal
Class StandardImportedBundle
java.lang.Object
com.springsource.util.osgi.manifest.internal.BaseParameterised
com.springsource.util.osgi.manifest.internal.BaseCompoundHeaderEntry
com.springsource.util.osgi.manifest.internal.BaseImported
com.springsource.util.osgi.manifest.internal.StandardImportedBundle
- All Implemented Interfaces:
- Imported, ImportedBundle, Parameterised, Parseable
class StandardImportedBundle
- extends BaseImported
- implements ImportedBundle
Concurrent Semantics
Not thread-safe.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SHARING_SHARE
private static final java.lang.String SHARING_SHARE
- See Also:
- Constant Field Values
SHARING_CLONE
private static final java.lang.String SHARING_CLONE
- See Also:
- Constant Field Values
SHARING_DIRECTIVE
private static final java.lang.String SHARING_DIRECTIVE
- See Also:
- Constant Field Values
IMPORT_SCOPE_APPLICATION
private static final java.lang.String IMPORT_SCOPE_APPLICATION
- See Also:
- Constant Field Values
IMPORT_SCOPE_DIRECTIVE
private static final java.lang.String IMPORT_SCOPE_DIRECTIVE
- See Also:
- Constant Field Values
StandardImportedBundle
public StandardImportedBundle(HeaderParser parser,
java.lang.String name)
parse
HeaderDeclaration parse(HeaderParser parser,
java.lang.String parseString)
-
- Specified by:
parse
in class BaseParameterised
isApplicationImportScope
public boolean isApplicationImportScope()
- Returns
true
if the import's import-scope
directive is present and has
a value of application
, otherwise false
is returned.
- Specified by:
isApplicationImportScope
in interface ImportedBundle
- Returns:
true
if and only if the import-scope directive has a value of application
getBundleSymbolicName
public java.lang.String getBundleSymbolicName()
- Returns the symbolic name of the bundle that is imported, never
null
.
- Specified by:
getBundleSymbolicName
in interface ImportedBundle
- Returns:
- the imported bundle's symbolic name.
getSharing
public Sharing getSharing()
- Returns the value of the import's
sharing
directive. If no such directive is specified the
default value of Sharing.AUTOMATIC
is returned.
- Specified by:
getSharing
in interface ImportedBundle
- Returns:
- the value of the import's sharing directive.
setApplicationImportScope
public void setApplicationImportScope(boolean applicationImportScope)
- Sets the
import-scope
directive
- Specified by:
setApplicationImportScope
in interface ImportedBundle
- Parameters:
applicationImportScope
- Whether or not the import's scope is application
setBundleSymbolicName
public void setBundleSymbolicName(java.lang.String bundleSymbolicName)
- Sets the symbolic name of the bundle that is imported
- Specified by:
setBundleSymbolicName
in interface ImportedBundle
- Parameters:
bundleSymbolicName
- the imported bundle's symbolic name
setSharing
public void setSharing(Sharing sharing)
- Sets the value of the import's
sharing
directive.
- Specified by:
setSharing
in interface ImportedBundle
- Parameters:
sharing
- the value of the import's sharing directive