Class InvokableMethod
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.impl.InvokableMethod
-
- All Implemented Interfaces:
Comparable<InvokableMethod>
- Direct Known Subclasses:
InvokableIteratorMethod
public class InvokableMethod extends Object implements Comparable<InvokableMethod>
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADAPTABLE_PRIORITY
protected Class<? extends AsyncService>
asyncService
protected Class<?>
consume
static int
EXACT_MATCH_PRIORITY
static int
ISTANCE_OF_PRIORITY
protected static Log
log
protected Method
method
protected OperationType
op
protected int
priority
protected Class<?>
produce
static int
USER_PRIORITY
static int
VOID_PRIORITY
-
Constructor Summary
Constructors Constructor Description InvokableMethod(OperationType op, Method method)
InvokableMethod(OperationType op, Method method, OperationMethod anno)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(InvokableMethod o)
protected Object
doInvoke(OperationContext ctx, Map<String,Object> args)
Class<? extends AsyncService>
getAsyncService()
Class<?>
getConsume()
protected String
getExceptionMessage()
Class<?>
getInputType()
Method
getMethod()
OperationType
getOperation()
Class<?>
getOutputType()
int
getPriority()
Class<?>
getProduce()
int
inputMatch(Class<?> in)
Return 0 for no match.Object
invoke(OperationContext ctx, Map<String,Object> args)
boolean
isIterable()
String
toString()
-
-
-
Field Detail
-
log
protected static final Log log
-
VOID_PRIORITY
public static final int VOID_PRIORITY
- See Also:
- Constant Field Values
-
ADAPTABLE_PRIORITY
public static final int ADAPTABLE_PRIORITY
- See Also:
- Constant Field Values
-
ISTANCE_OF_PRIORITY
public static final int ISTANCE_OF_PRIORITY
- See Also:
- Constant Field Values
-
EXACT_MATCH_PRIORITY
public static final int EXACT_MATCH_PRIORITY
- See Also:
- Constant Field Values
-
USER_PRIORITY
public static final int USER_PRIORITY
- See Also:
- Constant Field Values
-
op
protected OperationType op
-
method
protected Method method
-
produce
protected Class<?> produce
-
consume
protected Class<?> consume
-
priority
protected int priority
-
asyncService
protected Class<? extends AsyncService> asyncService
-
-
Constructor Detail
-
InvokableMethod
public InvokableMethod(OperationType op, Method method, OperationMethod anno)
-
InvokableMethod
public InvokableMethod(OperationType op, Method method)
-
-
Method Detail
-
isIterable
public boolean isIterable()
-
getPriority
public int getPriority()
-
getOperation
public OperationType getOperation()
-
getOutputType
public final Class<?> getOutputType()
-
getInputType
public final Class<?> getInputType()
-
inputMatch
public int inputMatch(Class<?> in)
Return 0 for no match.
-
doInvoke
protected Object doInvoke(OperationContext ctx, Map<String,Object> args) throws OperationException, ReflectiveOperationException
-
invoke
public Object invoke(OperationContext ctx, Map<String,Object> args) throws OperationException
- Throws:
OperationException
-
getExceptionMessage
protected String getExceptionMessage()
-
compareTo
public int compareTo(InvokableMethod o)
- Specified by:
compareTo
in interfaceComparable<InvokableMethod>
-
getMethod
public Method getMethod()
-
getProduce
public Class<?> getProduce()
-
getConsume
public Class<?> getConsume()
-
getAsyncService
public Class<? extends AsyncService> getAsyncService()
-
-