Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.idl.java
Class JavaIDLUtils

java.lang.Object
  extended by org.apache.tuscany.spi.idl.java.JavaIDLUtils

public final class JavaIDLUtils
extends Object

Contains methods for mapping between an operation in a ServiceContract and a method defined by a Java interface

Version:
$Rev: 441935 $ $Date: 2006-09-10 02:57:47 -0700 (Sun, 10 Sep 2006) $

Method Summary
static Method findMethod(Operation<?> operation, Method[] methods)
          Searches an array of methods for a match against the given operation
static Operation findOperation(Method method, Collection<Operation<?>> operations)
          Searches a collection of operations for a match against the given method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findMethod

public static Method findMethod(Operation<?> operation,
                                Method[] methods)
Searches an array of methods for a match against the given operation

Parameters:
operation - the operation to match
methods - the methods to match against
Returns:
a matching method or null

findOperation

public static Operation findOperation(Method method,
                                      Collection<Operation<?>> operations)
Searches a collection of operations for a match against the given method

Parameters:
method - the method to match
operations - the operations to match against
Returns:
a matching operation or null

Apache Tuscany SCA Kernel Sub-Project

-