|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.impl.agent.services.loader.rmi.NetLibLoader
The LibraryLoader
class loads native dynamic libraries.
These libraries are usually associated with native methods.
First we try to download the library from the class server and load it. If the library
cannot be found in the class server then the VM searches the library along the path
specified as the java.library.path
property.
The library path used by default for locating libraries is specified in the following order:
libpath
property in the object name you give to the service.
jaw.net.library.path
property.
getTmpDir()
in class DefaultPaths.
The server attempts to locate the library in:
/
OSName/
OSArch/
OSVersion/lib
For example:
/opt/SUNWconn/jaw/tmp/SunOS/sparc/5.7/lib
C:\Program Files\SUNWconn\jaw\tmp\WindowsNT\x86\4.0\lib
Constructor Summary | |
NetLibLoader(ObjectName name)
Create a new instance of NetLibLoader . |
Method Summary | |
java.lang.String |
findLibrary(NetClassServer server,
java.lang.String libname)
Returns the absolute path name of a native library. |
java.lang.String |
getClassVersion()
Returns the version of this class. |
java.util.Vector |
getLibPaths()
Returns the current library path used by this library loader to locally store the libraries coming from the Class Server before they are loaded. |
void |
setLibPaths(java.util.Vector newValue)
Sets the current library path used by this library loader to locally store the libraries coming from the Class Server before they are loaded. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public NetLibLoader(ObjectName name)
NetLibLoader
.
The library path to look for libraries can be provided when creating the library loader, if not provided, the default one will be used.
Method Detail |
public java.lang.String findLibrary(NetClassServer server, java.lang.String libname)
OSName/OSArch/OSVersion/lib/nativelibname
), i.e.
the library stat on Solaris SPARC 5.7 will be searched under the library path specified by the class server as:
If this method returns null
, i.e. the library was not found in the class server associated to this
class loader, the VM searches the library along the path specified as the java.library.path
property.
libname
- The library name.public java.util.Vector getLibPaths()
public void setLibPaths(java.util.Vector newValue)
newValue
- The new Vector of paths to use.public java.lang.String getClassVersion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |