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()
LibrarySourceThis 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 LibrarySourcepublic void close()
LibrarySourceThis 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 LibrarySourcepublic java.lang.String getPath(java.lang.String name)
throws java.lang.IllegalStateException
LibrarySourceReturns a file system path to the specified library.
getPath in interface LibrarySourcename - the name of the library that is being requested.java.lang.IllegalStateException - if the resource source has not
been opened.