public class AnnotationProcessor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotationProcessor.ConditionType |
| Constructor and Description |
|---|
AnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static Annotation[] |
getAnnotations(AccessibleObject object)
Get cached annotations for field, class or method
|
static <A extends org.apache.fulcrum.security.model.turbine.TurbineAccessControlList<?>> |
isAuthorized(AccessibleObject object,
A acl)
Check if the object given is authorized to be executed based on its annotations
The method will return false if one of the annotations denies execution
|
static <A extends org.apache.fulcrum.security.model.turbine.TurbineAccessControlList<?>> |
isAuthorized(AccessibleObject object,
A acl,
AnnotationProcessor.ConditionType conditonType)
Check if the object given is authorized to be executed based on its annotations
The method's return value depends on the conditonType, refer to the ConditionType
|
static void |
process(Object object)
Search for annotated fields of the object and inject the appropriate
objects
|
public static Annotation[] getAnnotations(AccessibleObject object)
object - a field, class or methodpublic static <A extends org.apache.fulcrum.security.model.turbine.TurbineAccessControlList<?>> boolean isAuthorized(AccessibleObject object, A acl)
A - ACL instanceobject - accessible object to testacl - access control listisAuthorized(AccessibleObject, TurbineAccessControlList, ConditionType)public static <A extends org.apache.fulcrum.security.model.turbine.TurbineAccessControlList<?>> boolean isAuthorized(AccessibleObject object, A acl, AnnotationProcessor.ConditionType conditonType)
A - ACL instanceobject - the objectacl - access control listconditonType - either AnnotationProcessor.ConditionType.COMPOUND: The method will return false if one of the annotations denies execution
or AnnotationProcessor.ConditionType.ANY : The method will return true if one of the annotations allows executionpublic static void process(Object object) throws TurbineException
object - the objectTurbineException - if the objects could not be injectedCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.