Nuxeo Enterprise Platform 5.4

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

java.lang.Object
  extended by org.nuxeo.ecm.automation.core.impl.InvokableMethod

public class InvokableMethod
extends java.lang.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, java.lang.reflect.Method method)
           
 
Method Summary
 java.lang.Class<?> getInputType()
           
 OperationType getOperation()
           
 java.lang.Class<?> getOutputType()
           
 int getPriority()
           
 int inputMatch(java.lang.Class<?> in)
          Return 0 for no match.
 java.lang.Object invoke(OperationContext ctx, java.util.Map<java.lang.String,java.lang.Object> args)
           
 int outputMatch(java.lang.Class<?> out)
          Returns 0 for no match.
 
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,
                       java.lang.reflect.Method method)
Method Detail

getPriority

public int getPriority()

getOperation

public OperationType getOperation()

getOutputType

public final java.lang.Class<?> getOutputType()

getInputType

public final java.lang.Class<?> getInputType()

inputMatch

public int inputMatch(java.lang.Class<?> in)
Return 0 for no match.


outputMatch

public int outputMatch(java.lang.Class<?> out)
Returns 0 for no match.


invoke

public java.lang.Object invoke(OperationContext ctx,
                               java.util.Map<java.lang.String,java.lang.Object> args)
                        throws java.lang.Exception
Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.