| Modifier and Type | Class and Description |
|---|---|
| public static interface | PrivilegedAccessHelper.CallableExceptionSupplier<
specific E extends Exception>Exception typeINTERNAL
Specific |
| public static interface | PrivilegedAccessHelper.CallableThrowableSupplier<
specific T extends Throwable>Throwable typeINTERNAL
Specific |
| public static interface | PrivilegedAccessHelper.PrivilegedCallable<
the result type of method call T>INTERNAL A task that returns a result and shall not throw an exception. |
| public static interface | PrivilegedAccessHelper.PrivilegedExceptionCallable<
the result type of method call T>INTERNAL A task that returns a result and may throw an exception. |
| public static interface | PrivilegedAccessHelper.PrivilegedExceptionConsumer
INTERNAL A task that does not return any result and may throw an exception. |
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| private static final String[] | |
| private static final Set | |
| private static final String[] | |
| private static final Set | |
| private static final Map | |
| private static boolean | |
| private static boolean | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
public static <PrivilegedCallable return type | callDoPrivileged(final PrivilegedAccessHelper.
task to execute taskINTERNAL
Executes provided |
public static <PrivilegedExceptionCallable return type | callDoPrivilegedWithException(final PrivilegedAccessHelper.
task to execute taskINTERNAL
Executes provided |
| public static void | callDoPrivilegedWithException(final PrivilegedAccessHelper.
task to execute taskINTERNAL
Executes provided |
public static <PrivilegedExceptionCallable return typespecific E extends Exception> TException type | callDoPrivilegedWithException(final PrivilegedAccessHelper.
task to execute task,specific exceptionException supplierINTERNAL
Executes provided |
| public static < specific E extends Exception> voidException type | callDoPrivilegedWithException(final PrivilegedAccessHelper.
task to execute task,specific exceptionException supplierINTERNAL
Executes provided |
public static <PrivilegedExceptionCallable return type | callDoPrivilegedWithThrowable(final PrivilegedAccessHelper.
task to execute taskINTERNAL
Executes provided |
public static <PrivilegedExceptionCallable return typespecific E extends Throwable> TThrowable type | callDoPrivilegedWithThrowable(final PrivilegedAccessHelper.
task to execute task,specific throwableThrowable supplierINTERNAL
Executes provided |
| private static <T> Field | findDeclaredField(Class<T> javaClass, String fieldName)
Finding a field within a class potentially has to navigate through it's superclasses to eventually find the field. |
| private static <T> Method | findMethod(Class<T> javaClass, String methodName, Class<?>[] methodParameterTypes)
Finding a method within a class potentially has to navigate through it's superclasses to eventually find the method. |
| public static <T> Class | |
| public static <T> Class | getClassForName(final String className, final boolean initialize, final ClassLoader loader)
Execute a java Class.forName() wrap the call in a doPrivileged block if necessary. |
| public static ClassLoader | |
| public static <T> Constructor | getConstructorFor(final Class<T>
The class to get the Constructor for javaClass, final Class<?>[] An array of classes representing the argument types of the constructor args, final boolean whether or not to call the setAccessible API shouldSetAccessible)Get the public constructor for the given class and given arguments and wrap it in doPrivileged if necessary. |
| public static ClassLoader | |
| public static <T> Constructor | getDeclaredConstructorFor(final Class<T>
The class to get the Constructor for javaClass, final Class<?>[] An array of classes representing the argument types of the constructor args, final boolean whether or not to call the setAccessible API shouldSetAccessible)Get the constructor for the given class and given arguments (regardless of whether it is public or private))and wrap it in doPrivileged if necessary. |
| public static Field | getDeclaredField(final Class<?>
The class to get the field from javaClass, final String The name of the field fieldName, final boolean whether or not to call the setAccessible API shouldSetAccessible)Get a field actually declared in a class and wrap the call in doPrivileged if necessary. |
| public static Field[] | getDeclaredFields(final Class<?>
the class to get the fields from. clazz)Get the list of fields in a class. |
| public static Method | getDeclaredMethod(final Class<?>
the class to get the method from clazz, final String the name of the method to get methodName, final Class<?>[] a list of classes representing the classes of the
parameters of the method. methodParameterTypes)Return a method on a given class with the given method name and parameter types. |
| public static Method[] | getDeclaredMethods(final Class<?>
the class to get the methods from. clazz)Get the list of methods in a class. |
| public static Field | |
| public static Field[] | |
| public static <T> Class | |
| public static String | Returns: TheString containing the platform-appropriate characters for line separator.INTERNAL: Get the line separator character. |
| public static Method | getMethod(final Class<?>
The class to get the method from javaClass, final String The name of the method to get methodName, final Class<?>[] A list of classes representing the classes of the parameters of the mthod methodParameterTypes, final boolean whether or not to call the setAccessible API shouldSetAccessible)Get a method declared in the given class. |
| public static Class | getMethodParameterTypes(final Method
The method to get the parameter types of method)Get the list of parameter types for a given method. |
| public static <T> Class | |
| public static Method[] | getMethods(final Class<?>
the class to get the methods from. clazz)Get the list of methods in a class. |
| public static Method | getPublicMethod(final Class<?>
The class to get the method from javaClass, final String The name of the method to get methodName, final Class<?>[] A list of classes representing the classes of the parameters of the method methodParameterTypes, final boolean whether or not to call the setAccessible API shouldSetAccessible)Get a public method declared in the given class. |
| public static String | Returns: TheString value of the system property or null if property identified by key
does not exist.The name of the key)System property.INTERNAL:
Get the |
| public static String | |
| public static boolean | Returns: true if the property value is "true" (case insensitive)
or the property is not defined and def is true;
false otherwise.The name of the key, final boolean System property.The default value. def)INTERNAL:
Get boolean value of the |
| public static <T> T | getValueFromField(final Field field, final Object object)
Get the value of the given field in the given object. |
| public static <T> T | invokeConstructor(final Constructor<T> constructor, final Object[] args)
Construct an object with the given Constructor and the given array of arguments. |
| public static <T> T | |
| public static <T> T | invokeMethod(final Method method, final Object object, final Object[] parameters)
Invoke the givenMethod on a givenObject using the array of parameters given. |
| private static boolean | Returns: Value oftrue if getSystemProperty is allowed defaultUseDoPrivilegedValue override
or false otherwise.The name of the key)System property.Vet certain System properties as "safe" enough to override defaultUseDoPrivilegedValue setting. |
| private static boolean | Returns: Value oftrue if getSystemProperty is allowed for this property key
or false otherwise.The name of the key)System property.Check if |
| public static <T> T | newInstanceFromClass(final Class<T> clazz)
Get a new instance of a class using the default constructor. |
| public static void | setDefaultUseDoPrivilegedValue(boolean def)
INTERNAL It will be used to set default value of property "eclipselink.security.usedoprivileged" if not passed as system property. |
| public static void | setValueInField(final Field field, final Object object, final Object value)
Set the value of a given field in the given object with the value given. |
| public static boolean |