public final class SecurityActions extends Object
Defines a set of operations that are meant to be executed within security context.
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
classForName(String name)
Loads the class by it's name.
|
static InputStream |
getResource(String resourceName)
Loads the resources using the executing thread class loader.
|
static Method[] |
getStaticMethodsWithAnnotation(Class<?> source,
Class<? extends Annotation> annotationClass)
Retrieves the list of methods that were annotated with given annotation.
|
static boolean |
isClassPresent(String name)
Returns whether given class is prevent within the class path.
|
public static boolean isClassPresent(String name)
Returns whether given class is prevent within the class path.
name - the class namepublic static InputStream getResource(String resourceName)
Loads the resources using the executing thread class loader.
resourceName - the resource namepublic static Class<?> classForName(String name)
Loads the class by it's name.
name - the class namepublic static Method[] getStaticMethodsWithAnnotation(Class<?> source, Class<? extends Annotation> annotationClass)
source - the class to scan for classesannotationClass - the annotationCopyright © 2013 JBoss by Red Hat. All Rights Reserved.