Brooklyn

brooklyn.entity.basic
[Java] Class MethodEffector

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


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(org.codehaus.groovy.runtime.MethodClosure mc)

java.lang.Object MethodEffector(java.lang.Class whereEffectorDefined, java.lang.String methodName, java.lang.String description)

deprecated:
will be deleted in 0.5.

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

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

 
Methods inherited from class AbstractEffector
call, call, call, equals, getDescription, getName, getParameters, getReturnType, getReturnTypeName, hashCode, 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(org.codehaus.groovy.runtime.MethodClosure mc)


MethodEffector

@Deprecated
public java.lang.Object MethodEffector(java.lang.Class whereEffectorDefined, java.lang.String methodName, java.lang.String description)
deprecated:
will be deleted in 0.5. Use description annotation


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)


 

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