public class OSGiLibrarySource extends java.lang.Object implements LibrarySource
Constructor and Description |
---|
OSGiLibrarySource(BundleCache cache,
long bundleId,
int revision,
java.lang.String os,
java.lang.String processor,
LibraryInfo[] libraries) |
public OSGiLibrarySource(BundleCache cache, long bundleId, int revision, java.lang.String os, java.lang.String processor, LibraryInfo[] libraries)
public void open()
LibrarySource
This method initializes the library source. It is called when the associated module is added to the ModuleManager. It is acceptable for implementations to ignore duplicate calls to this method if the library source is already opened.
open
in interface LibrarySource
public void close()
LibrarySource
This method de-initializes the library source. It is called when the associated module is removed from the ModuleManager or when the module is reset by the ModuleManager.
close
in interface LibrarySource
public java.lang.String getPath(java.lang.String name) throws java.lang.IllegalStateException
LibrarySource
Returns a file system path to the specified library.
getPath
in interface LibrarySource
name
- the name of the library that is being requested.java.lang.IllegalStateException
- if the resource source has not
been opened.