public class MethodEffector<T> extends AbstractEffector<T>
note that the method must be on an interface in order for it to be remoted, with the current implementation.
see comments in call(Entity, Map)
for more details.
Constructor and Description |
---|
MethodEffector(java.lang.Class<?> whereEffectorDefined,
java.lang.String methodName)
Defines a new effector whose details are supplied as annotations on the given type and method name
|
MethodEffector(java.lang.reflect.Method method) |
MethodEffector(org.codehaus.groovy.runtime.MethodClosure mc) |
Modifier and Type | Method and Description |
---|---|
T |
call(Entity entity,
java.util.Map parameters) |
static Effector<?> |
create(java.lang.reflect.Method m) |
call, call, getBody
equals, getDescription, getName, getParameters, getReturnType, getReturnTypeName, hashCode, toString
getDescription, getName, getParameters, getReturnType, getReturnTypeName
public MethodEffector(java.lang.Class<?> whereEffectorDefined, java.lang.String methodName)
public MethodEffector(java.lang.reflect.Method method)
public MethodEffector(org.codehaus.groovy.runtime.MethodClosure mc)