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 SummaryFields Modifier and Type Field Description static intADAPTABLE_PRIORITYprotected Class<? extends AsyncService>asyncServiceprotected Class<?>consumestatic intEXACT_MATCH_PRIORITYstatic intISTANCE_OF_PRIORITYprotected static Loglogprotected Methodmethodprotected OperationTypeopprotected intpriorityprotected Class<?>producestatic intUSER_PRIORITYstatic intVOID_PRIORITY
 - 
Constructor SummaryConstructors Constructor Description InvokableMethod(OperationType op, Method method)InvokableMethod(OperationType op, Method method, OperationMethod anno)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(InvokableMethod o)protected ObjectdoInvoke(OperationContext ctx, Map<String,Object> args)Class<? extends AsyncService>getAsyncService()Class<?>getConsume()protected StringgetExceptionMessage()Class<?>getInputType()MethodgetMethod()OperationTypegetOperation()Class<?>getOutputType()intgetPriority()Class<?>getProduce()intinputMatch(Class<?> in)Return 0 for no match.Objectinvoke(OperationContext ctx, Map<String,Object> args)booleanisIterable()StringtoString()
 
- 
- 
- 
Field Detail- 
logprotected static final Log log 
 - 
VOID_PRIORITYpublic static final int VOID_PRIORITY - See Also:
- Constant Field Values
 
 - 
ADAPTABLE_PRIORITYpublic static final int ADAPTABLE_PRIORITY - See Also:
- Constant Field Values
 
 - 
ISTANCE_OF_PRIORITYpublic static final int ISTANCE_OF_PRIORITY - See Also:
- Constant Field Values
 
 - 
EXACT_MATCH_PRIORITYpublic static final int EXACT_MATCH_PRIORITY - See Also:
- Constant Field Values
 
 - 
USER_PRIORITYpublic static final int USER_PRIORITY - See Also:
- Constant Field Values
 
 - 
opprotected OperationType op 
 - 
methodprotected Method method 
 - 
produceprotected Class<?> produce 
 - 
consumeprotected Class<?> consume 
 - 
priorityprotected int priority 
 - 
asyncServiceprotected Class<? extends AsyncService> asyncService 
 
- 
 - 
Constructor Detail- 
InvokableMethodpublic InvokableMethod(OperationType op, Method method, OperationMethod anno) 
 - 
InvokableMethodpublic InvokableMethod(OperationType op, Method method) 
 
- 
 - 
Method Detail- 
isIterablepublic boolean isIterable() 
 - 
getPrioritypublic int getPriority() 
 - 
getOperationpublic OperationType getOperation() 
 - 
getOutputTypepublic final Class<?> getOutputType() 
 - 
getInputTypepublic final Class<?> getInputType() 
 - 
inputMatchpublic int inputMatch(Class<?> in) Return 0 for no match.
 - 
doInvokeprotected Object doInvoke(OperationContext ctx, Map<String,Object> args) throws OperationException, ReflectiveOperationException 
 - 
invokepublic Object invoke(OperationContext ctx, Map<String,Object> args) throws OperationException - Throws:
- OperationException
 
 - 
getExceptionMessageprotected String getExceptionMessage() 
 - 
compareTopublic int compareTo(InvokableMethod o) - Specified by:
- compareToin interface- Comparable<InvokableMethod>
 
 - 
getMethodpublic Method getMethod() 
 - 
getProducepublic Class<?> getProduce() 
 - 
getConsumepublic Class<?> getConsume() 
 - 
getAsyncServicepublic Class<? extends AsyncService> getAsyncService() 
 
- 
 
-