Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.core.impl
Class InvokableMethod

java.lang.Object
  extended by org.nuxeo.ecm.automation.core.impl.InvokableMethod
Direct Known Subclasses:
InvokableIteratorMethod

public class InvokableMethod
extends Object

Author:
Bogdan Stefanescu

Field Summary
static int ADAPTABLE_PRIORITY
           
static int EXACT_MATCH_PRIORITY
           
static int ISTANCE_OF_PRIORITY
           
static int USER_PRIORITY
           
static int VOID_PRIORITY
           
 
Constructor Summary
InvokableMethod(OperationType op, Method method, OperationMethod anno)
           
 
Method Summary
 Class<?> getInputType()
           
 OperationType getOperation()
           
 Class<?> getOutputType()
           
 int getPriority()
           
 int inputMatch(Class<?> in)
          Return 0 for no match.
 Object invoke(OperationContext ctx, Map<String,Object> args)
           
 boolean isIterable()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

InvokableMethod

public InvokableMethod(OperationType op,
                       Method method,
                       OperationMethod anno)
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.


invoke

public Object invoke(OperationContext ctx,
                     Map<String,Object> args)
              throws OperationException
Throws:
OperationException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.