org.apache.openjpa.lib.util
Class J2DoPriv5Helper

java.lang.Object
  extended by org.apache.openjpa.lib.util.J2DoPrivHelper
      extended by org.apache.openjpa.lib.util.J2DoPriv5Helper

public abstract class J2DoPriv5Helper
extends J2DoPrivHelper

Helper class to obtain the Privilege(Exception)Action object to perform Java 2 doPrivilege security sensitive function call in the following methods:

Author:
Albert Lee

Constructor Summary
J2DoPriv5Helper()
           
 
Method Summary
static PrivilegedAction getAnnotationsAction(AnnotatedElement element)
          Return a PrivilegeAction object for AnnotatedElement.getAnnotations().
static PrivilegedAction getDeclaredAnnotationsAction(AnnotatedElement element)
          Return a PrivilegeAction object for AnnotatedElement.getDeclaredAnnotations().
static PrivilegedAction isAnnotationPresentAction(AnnotatedElement element, Class annotationClazz)
          Return a PrivilegeAction object for AnnotatedElement.isAnnotationPresent().
 
Methods inherited from class org.apache.openjpa.lib.util.J2DoPrivHelper
acceptAction, bCClassWrite, deleteAction, existsAction, getAbsoluteFileAction, getAbsolutePathAction, getBCClassFieldsAction, getByNameAction, getCanonicalPathAction, getClassLoaderAction, getContentAction, getContextClassLoaderAction, getDeclaredFieldAction, getDeclaredFieldsAction, getDeclaredMethodAction, getDeclaredMethodsAction, getFieldInstructionFieldAction, getForNameAction, getLineSeparator, getParentAction, getPathSeparator, getPropertiesAction, getPropertyAction, getResourceAction, getResourceAction, getResourcesAction, getSystemClassLoaderAction, isDirectoryAction, isFileAction, lengthAction, listFilesAction, loadProjectClassAction, loadProjectClassAction, mkdirsAction, newBCClassLoaderAction, newBCClassLoaderAction, newCodeAction, newDaemonThreadAction, newFileInputStreamAction, newFileOutputStreamAction, newFileOutputStreamAction, newInstanceAction, newMultiClassLoaderAction, newServerSocketAction, newSocketAction, newTemporaryClassLoaderAction, newZipFileAction, openStreamAction, renameToAction, setAccessibleAction, toURLAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2DoPriv5Helper

public J2DoPriv5Helper()
Method Detail

getAnnotationsAction

public static final PrivilegedAction getAnnotationsAction(AnnotatedElement element)
Return a PrivilegeAction object for AnnotatedElement.getAnnotations(). Requires security policy: 'permission java.lang.RuntimePermission "accessDeclaredMembers";'

Returns:
Annotation[]

getDeclaredAnnotationsAction

public static final PrivilegedAction getDeclaredAnnotationsAction(AnnotatedElement element)
Return a PrivilegeAction object for AnnotatedElement.getDeclaredAnnotations(). Requires security policy: 'permission java.lang.RuntimePermission "accessDeclaredMembers";'

Returns:
Annotation[]

isAnnotationPresentAction

public static final PrivilegedAction isAnnotationPresentAction(AnnotatedElement element,
                                                               Class annotationClazz)
Return a PrivilegeAction object for AnnotatedElement.isAnnotationPresent(). Requires security policy: 'permission java.lang.RuntimePermission "accessDeclaredMembers";'

Returns:
Boolean


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.