com.springsource.util.osgi.manifest
Interface ImportedLibrary

All Superinterfaces:
Imported, Parameterised, Parseable
All Known Implementing Classes:
StandardImportedLibrary

public interface ImportedLibrary
extends Imported

Represents a single entry in a bundle's Import-Library header.

Concurrent Semantics
May not be thread-safe.

Since:
Jersey

Method Summary
 java.lang.String getLibrarySymbolicName()
          Returns the symbolic name of the library that is imported, never null.
 Sharing getSharing()
          Returns the value of the import's sharing directive.
 void setLibrarySymbolicName(java.lang.String librarySymbolicName)
          Sets the symbolic name of the library that is imported.
 void setSharing(Sharing sharing)
          Sets the value of the import's sharing directive.
 
Methods inherited from interface com.springsource.util.osgi.manifest.Imported
getResolution, getVersion, setResolution, setVersion
 
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

getLibrarySymbolicName

java.lang.String getLibrarySymbolicName()
Returns the symbolic name of the library that is imported, never null.

Returns:
the imported library's symbolic name.

setLibrarySymbolicName

void setLibrarySymbolicName(java.lang.String librarySymbolicName)
                            throws java.lang.IllegalArgumentException
Sets the symbolic name of the library that is imported.

Parameters:
librarySymbolicName - The imported library's symbolic name
Throws:
java.lang.IllegalArgumentException - if librarySymbolicName is null

getSharing

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.

Returns:
the value of the import's sharing directive.

setSharing

void setSharing(Sharing sharing)
Sets the value of the import's sharing directive.

Parameters:
sharing - the value of the import's sharing directive