public class SetPublicFieldExecutor extends SetExecutor
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Field |
field
Field to be accessed
|
private Introspector |
introspector |
log
Constructor and Description |
---|
SetPublicFieldExecutor(org.slf4j.Logger log,
Introspector introspector,
java.lang.Class<?> clazz,
java.lang.String property,
java.lang.Object arg) |
Modifier and Type | Method and Description |
---|---|
protected void |
discover(java.lang.Class<?> clazz,
java.lang.String property,
java.lang.Object arg) |
java.lang.Object |
execute(java.lang.Object o,
java.lang.Object value)
Execute method against context.
|
java.lang.reflect.Field |
getField() |
protected Introspector |
getIntrospector() |
boolean |
isAlive()
Tell whether the executor is alive by looking
at the value of the method.
|
protected void |
setField(java.lang.reflect.Field field) |
getMethod, setMethod
private final Introspector introspector
private java.lang.reflect.Field field
public SetPublicFieldExecutor(org.slf4j.Logger log, Introspector introspector, java.lang.Class<?> clazz, java.lang.String property, java.lang.Object arg)
log
- introspector
- clazz
- property
- arg
- public boolean isAlive()
SetExecutor
isAlive
in class SetExecutor
public java.lang.reflect.Field getField()
protected void setField(java.lang.reflect.Field field)
field
- protected Introspector getIntrospector()
protected void discover(java.lang.Class<?> clazz, java.lang.String property, java.lang.Object arg)
clazz
- property
- arg
- public java.lang.Object execute(java.lang.Object o, java.lang.Object value) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
execute
in class SetExecutor
o
- value
- java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException