All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.impl.agent.services.loader.rmi.NetLibLoader

java.lang.Object
   |
   +----com.sun.jaw.impl.agent.services.loader.rmi.NetLibLoader

public class NetLibLoader
extends Object
implements Serializable
The LibraryLoader class loads native dynamic libraries. These libraries are usually associated with native methods.

If the library can be found locally on the system, it is loaded. If the library does not exist on the local system it is downloaded from the library server.

The library path used by default for locating libraries depends on the operating environment:

The server attempts to locate the library in:

For example:


Constructor Index

 o NetLibLoader(ObjectName)
Create a new instance of NetLibLoader.

Method Index

 o getClassVersion()
Returns the version of this class.
 o getLibPaths()
Returns the current libpath used by this library loader to locally store the libraries coming from the Class Server before they are loaded.
 o loadLibrary(NetClassServer, String, String)
Loads a dynamic native library.
 o setLibPaths(Vector)
Sets the current libpath used by this library loader to locally store the libraries coming from the Class Server before they are loaded.

Constructors

 o NetLibLoader
 public NetLibLoader(ObjectName name)
Create a new instance of 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.

Methods

 o loadLibrary
 public void loadLibrary(NetClassServer server,
                         String baseName,
                         String libName) throws SecurityException, UnsatisfiedLinkError
Loads a dynamic native library.

Parameters:
server - The Class Server from where the library is to be downloaded.
basename - The basename argument is the unique library base name where the library is stored on the management server.
libname - The libname argument is either the full pathname of the library below the library base path or is a simple, architecture-independent library name where the path, prefix, and suffix for the library name are generated based on the appliance type on which the loadLibrary() call was made.
Throws: SecurityException
If the current thread cannot load the specified dynamic library.
Throws: UnsatisfiedLinkError
If the library does not exist.
 o getLibPaths
 public Vector getLibPaths()
Returns the current libpath used by this library loader to locally store the libraries coming from the Class Server before they are loaded.

 o setLibPaths
 public void setLibPaths(Vector newValue)
Sets the current libpath used by this library loader to locally store the libraries coming from the Class Server before they are loaded.

 o getClassVersion
 public String getClassVersion()
Returns the version of this class.


All Packages  Class Hierarchy  This Package  Previous  Next  Index