org.apache.bval.jsr303.util
Class SecureActions

java.lang.Object
  extended by org.apache.bval.util.PrivilegedActions
      extended by org.apache.bval.jsr303.util.SecureActions

public class SecureActions
extends PrivilegedActions

Description: utility methods to perform actions with AccessController or without.


Constructor Summary
SecureActions()
           
 
Method Summary
static PrivilegedAction<ValidatorFactory> doPrivBuildValidatorFactory(ConfigurationImpl config)
          Create a privileged action for ConfigurationImpl.buildValidatorFactory.
static PrivilegedAction<ClassLoader> getContextClassLoader()
          Create a privileged action to get the context classloader of the current thread.
static PrivilegedAction<Field> getDeclaredField(Class<?> clazz, String fieldName)
          Create a privileged action to get the named field declared by the specified class.
static PrivilegedAction<Field[]> getDeclaredFields(Class<?> clazz)
          Create a privileged action to get all fields declared by the specified class.
static PrivilegedAction<Method[]> getDeclaredMethods(Class<?> clazz)
          Create a privileged action to get all methods declared by the specified class.
static PrivilegedAction<Method> getPublicMethod(Class<?> clazz, String methodName)
          Create a privileged action to get the named method declared by the specified class or by one of its ancestors.
 
Methods inherited from class org.apache.bval.util.PrivilegedActions
getAnnotationValue, getClass, getClassLoader, getLineSeparator, getPathSeparator, getProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureActions

public SecureActions()
Method Detail

getContextClassLoader

public static PrivilegedAction<ClassLoader> getContextClassLoader()
Create a privileged action to get the context classloader of the current thread.

See Also:
Thread.getContextClassLoader()

getDeclaredField

public static PrivilegedAction<Field> getDeclaredField(Class<?> clazz,
                                                       String fieldName)
Create a privileged action to get the named field declared by the specified class. The result of the action will be null if there is no such field.


getDeclaredFields

public static PrivilegedAction<Field[]> getDeclaredFields(Class<?> clazz)
Create a privileged action to get all fields declared by the specified class.


getDeclaredMethods

public static PrivilegedAction<Method[]> getDeclaredMethods(Class<?> clazz)
Create a privileged action to get all methods declared by the specified class.


getPublicMethod

public static PrivilegedAction<Method> getPublicMethod(Class<?> clazz,
                                                       String methodName)
Create a privileged action to get the named method declared by the specified class or by one of its ancestors. The result of the action will be null if there is no such method.


doPrivBuildValidatorFactory

public static PrivilegedAction<ValidatorFactory> doPrivBuildValidatorFactory(ConfigurationImpl config)
Create a privileged action for ConfigurationImpl.buildValidatorFactory.



Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.