Save This Page
Home » openjdk-7 » sun.security » action » [javadoc | source]
sun.security.action
public class: LoadLibraryAction [javadoc | source]
java.lang.Object
   sun.security.action.LoadLibraryAction

All Implemented Interfaces:
    PrivilegedAction

A convenience class for loading a system library as a privileged action.

An instance of this class can be used as the argument of AccessController.doPrivileged.

The following code attempts to load the system library named "lib" as a privileged action:

java.security.AccessController.doPrivileged(new LoadLibraryAction("lib"));
Constructor:
 public LoadLibraryAction(String theLib) 
    Constructor that takes the name of the system library that needs to be loaded.

    The manner in which a library name is mapped to the actual system library is system dependent.

    Parameters:
    theLib - the name of the library.
Method from sun.security.action.LoadLibraryAction Summary:
run
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.security.action.LoadLibraryAction Detail:
 public Void run() 
    Loads the system library whose name was specified in the constructor.