public class

LoadLibraryAction

extends Object
implements PrivilegedAction<T>
java.lang.Object
   ↳ sun.security.action.LoadLibraryAction

Class Overview

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"));
 

Summary

Public Constructors
LoadLibraryAction(String theLib)
Constructor that takes the name of the system library that needs to be loaded.
Public Methods
Void run()
Loads the system library whose name was specified in the constructor.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.PrivilegedAction

Public Constructors

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.

Public Methods

public Void run ()

Loads the system library whose name was specified in the constructor.

Returns
  • a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.