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)
Deprecated.
since 0.11.0; explicit groovy utilities/support will be deleted.
|
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)
@Deprecated public MethodEffector(org.codehaus.groovy.runtime.MethodClosure mc)