public class InvokableMethod extends Object implements Comparable<InvokableMethod>
Modifier and Type | Field and Description |
---|---|
static int |
ADAPTABLE_PRIORITY |
protected Class<?> |
consume |
static int |
EXACT_MATCH_PRIORITY |
static int |
ISTANCE_OF_PRIORITY |
protected static org.apache.commons.logging.Log |
log |
protected Method |
method |
protected OperationType |
op |
protected int |
priority |
protected Class<?> |
produce |
static int |
USER_PRIORITY |
static int |
VOID_PRIORITY |
Constructor and Description |
---|
InvokableMethod(OperationType op,
Method method) |
InvokableMethod(OperationType op,
Method method,
OperationMethod anno) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(InvokableMethod o) |
protected Object |
doInvoke(OperationContext ctx,
Map<String,Object> args) |
Class<?> |
getConsume() |
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() |
protected static final org.apache.commons.logging.Log log
public static final int VOID_PRIORITY
public static final int ADAPTABLE_PRIORITY
public static final int ISTANCE_OF_PRIORITY
public static final int EXACT_MATCH_PRIORITY
public static final int USER_PRIORITY
protected OperationType op
protected int priority
public InvokableMethod(OperationType op, Method method, OperationMethod anno)
public InvokableMethod(OperationType op, Method method)
public boolean isIterable()
public int getPriority()
public OperationType getOperation()
public final Class<?> getOutputType()
public final Class<?> getInputType()
public int inputMatch(Class<?> in)
protected Object doInvoke(OperationContext ctx, Map<String,Object> args) throws OperationException, ReflectiveOperationException
public Object invoke(OperationContext ctx, Map<String,Object> args) throws OperationException
OperationException
public int compareTo(InvokableMethod o)
compareTo
in interface Comparable<InvokableMethod>
public Class<?> getProduce()
public Class<?> getConsume()
Copyright © 2017 Nuxeo. All rights reserved.