public static final class

ReflectionFactory.GetReflectionFactoryAction

extends Object
implements PrivilegedAction<T>
java.lang.Object
   ↳ sun.reflect.ReflectionFactory.GetReflectionFactoryAction

Class Overview

A convenience class for acquiring the capability to instantiate reflective objects. Use this instead of a raw call to getReflectionFactory() in order to avoid being limited by the permissions of your callers.

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

Summary

Public Constructors
ReflectionFactory.GetReflectionFactoryAction()
Public Methods
Object run()
Performs the computation.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.PrivilegedAction

Public Constructors

public ReflectionFactory.GetReflectionFactoryAction ()

Public Methods

public Object run ()

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

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.