Package org.jboss.weld.security
Class FieldLookupAction
- java.lang.Object
-
- org.jboss.weld.security.AbstractReflectionAction
-
- org.jboss.weld.security.GetDeclaredFieldAction
-
- org.jboss.weld.security.FieldLookupAction
-
- All Implemented Interfaces:
PrivilegedExceptionAction<Field>
public class FieldLookupAction extends GetDeclaredFieldAction implements PrivilegedExceptionAction<Field>
Returns a field from the class or any class/interface in the inheritance hierarchy- Author:
- Jozef Hartinger, Martin Kouba
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.security.GetDeclaredFieldAction
fieldName
-
Fields inherited from class org.jboss.weld.security.AbstractReflectionAction
javaClass
-
-
Constructor Summary
Constructors Constructor Description FieldLookupAction(Class<?> javaClass, String fieldName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Field
lookupField(Class<?> javaClass, String fieldName)
Field
run()
-
-
-
Method Detail
-
run
public Field run() throws NoSuchFieldException
- Specified by:
run
in interfacePrivilegedExceptionAction<Field>
- Overrides:
run
in classGetDeclaredFieldAction
- Throws:
NoSuchFieldException
-
lookupField
public static Field lookupField(Class<?> javaClass, String fieldName) throws NoSuchFieldException
- Throws:
NoSuchFieldException
-
-