private static final class MailHandler.GetAndSetContext
extends java.lang.Object
implements java.security.PrivilegedAction<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
source
The source containing the class loader.
|
Constructor and Description |
---|
GetAndSetContext(java.lang.Object source)
Create the action.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
run()
Gets the class loader from the source and sets the CCL only if
the source and CCL are not the same.
|
GetAndSetContext(java.lang.Object source)
source
- null for boot class loader, a class loader, a class
used to get the class loader, or a source object to get the class
loader.public final java.lang.Object run()
run
in interface java.security.PrivilegedAction<java.lang.Object>