Brooklyn

brooklyn.entity.basic
[Java] Class MethodEffector

java.lang.Object
  brooklyn.entity.effector.EffectorBase
      brooklyn.entity.basic.AbstractEffector
          brooklyn.entity.basic.MethodEffector

public class MethodEffector
extends AbstractEffector

concrete class for providing an Effector implementation that gets its information from annotations on a method; see Effector*Test for usage example.

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.


Nested Class Summary
protected static class MethodEffector.AnnotationsOnMethod

 
Field Summary
 
Fields inherited from class AbstractEffector
LOG
 
Method Summary
java.lang.Object 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

java.lang.Object MethodEffector(java.lang.reflect.Method method)

java.lang.Object MethodEffector(org.codehaus.groovy.runtime.MethodClosure mc)

protected java.lang.Object MethodEffector(MethodEffector.AnnotationsOnMethod anns, java.lang.String description)

java.lang.Object call(Entity entity, java.util.Map parameters)

static Effector create(java.lang.reflect.Method m)

 
Methods inherited from class AbstractEffector
call, call, call, getBody, getFlagsForTaskInvocationAt
 
Methods inherited from class EffectorBase
getDescription, getName, getParameters, getReturnType, getReturnTypeName, toString
 

Method Detail

MethodEffector

public java.lang.Object 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

public java.lang.Object MethodEffector(java.lang.reflect.Method method)


MethodEffector

public java.lang.Object MethodEffector(org.codehaus.groovy.runtime.MethodClosure mc)


MethodEffector

protected java.lang.Object MethodEffector(MethodEffector.AnnotationsOnMethod anns, java.lang.String description)


call

public java.lang.Object call(Entity entity, java.util.Map parameters)


create

@SuppressWarnings("rawtypes")
public static Effector create(java.lang.reflect.Method m)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.