public abstract class AbstractExecutor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractExecutor.Get
Abstract class that is used to execute an arbitrary 'get' method.
|
static class |
AbstractExecutor.Method
Abstract class that is used to execute an arbitrary method.
|
static class |
AbstractExecutor.Set
Abstract class that is used to execute an arbitrary 'set' method.
|
Modifier and Type | Field and Description |
---|---|
protected Method |
method
Method to be executed.
|
protected Class<?> |
objectClass
The class this executor applies to.
|
static Object |
TRY_FAILED
A marker for invocation failures in tryInvoke.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractExecutor(Class<?> theClass,
Method theMethod)
Default and sole constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(AbstractExecutor arg)
Indicates whether some other executor is equivalent to this one.
|
boolean |
equals(Object obj) |
Method |
getMethod()
Gets the method to be executed or used as a marker.
|
String |
getMethodName()
Gets the method name used.
|
Class<?> |
getTargetClass()
Gets the object class targeted by this executor.
|
Object |
getTargetProperty()
Gets the property targeted by this executor.
|
int |
hashCode() |
boolean |
isAlive()
Tell whether the executor is alive by looking
at the value of the method.
|
boolean |
isCacheable()
Specifies if this executor is cacheable and able to be reused for this
class of object it was returned for.
|
boolean |
tryFailed(Object exec)
Checks whether a tryExecute failed or not.
|
public static final Object TRY_FAILED
protected final Class<?> objectClass
protected final Method method
public boolean equals(AbstractExecutor arg)
arg
- the other executor to checkpublic final boolean isAlive()
public boolean isCacheable()
public final Method getMethod()
public final Class<?> getTargetClass()
public Object getTargetProperty()
public final String getMethodName()
public final boolean tryFailed(Object exec)
exec
- the value returned by tryExecuteCopyright © 2016 Internet2. All rights reserved.