org.apache.tuscany.sca.binding.corba.impl.reference
Class DynaCorbaRequest

java.lang.Object
  extended by org.apache.tuscany.sca.binding.corba.impl.reference.DynaCorbaRequest

public class DynaCorbaRequest
extends java.lang.Object


Constructor Summary
DynaCorbaRequest(org.omg.CORBA.Object remoteObject, java.lang.String operation)
          Creates request.
 
Method Summary
 void addArgument(java.lang.Object argument)
          Adds operation argument - stores arguments and caches its TypeTree.
 void addArgument(java.lang.Object argument, java.lang.annotation.Annotation[] notes)
          Adds operation argument - stores arguments and caches its TypeTree
 void addExceptionType(java.lang.Class<?> forClass)
          Configures possible exceptions
 DynaCorbaResponse invoke()
          Invokes previously configured request
 void setOperationsMap(java.util.Map<java.lang.reflect.Method,java.lang.String> operationsMap)
          Sets method to operation names mapping
 void setOutputType(java.lang.Class<?> forClass)
          Sets return type for operation.
 void setOutputType(java.lang.Class<?> forClass, java.lang.annotation.Annotation[] notes)
          Sets return type for operation
 void setReferenceClass(java.lang.Class<?> referenceClass)
          Sets class which will be backed by this reference request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynaCorbaRequest

public DynaCorbaRequest(org.omg.CORBA.Object remoteObject,
                        java.lang.String operation)
Creates request.

Parameters:
ObjectremoteObject - remote object reference
operation - operation to invoke
scaBindingRules - apply SCA default binding mapping rules
Method Detail

setReferenceClass

public void setReferenceClass(java.lang.Class<?> referenceClass)
Sets class which will be backed by this reference request

Parameters:
referenceClass -

setOperationsMap

public void setOperationsMap(java.util.Map<java.lang.reflect.Method,java.lang.String> operationsMap)
Sets method to operation names mapping

Parameters:
operationsMap -

addArgument

public void addArgument(java.lang.Object argument)
                 throws RequestConfigurationException
Adds operation argument - stores arguments and caches its TypeTree. Annotations will be set to null by default.

Parameters:
argument -
Throws:
RequestConfigurationException

addArgument

public void addArgument(java.lang.Object argument,
                        java.lang.annotation.Annotation[] notes)
                 throws RequestConfigurationException
Adds operation argument - stores arguments and caches its TypeTree

Parameters:
argument -
Throws:
RequestConfigurationException

setOutputType

public void setOutputType(java.lang.Class<?> forClass)
                   throws RequestConfigurationException
Sets return type for operation. Annotations will be set to null by default.

Parameters:
forClass -
Throws:
RequestConfigurationException

setOutputType

public void setOutputType(java.lang.Class<?> forClass,
                          java.lang.annotation.Annotation[] notes)
                   throws RequestConfigurationException
Sets return type for operation

Parameters:
forClass -
Throws:
RequestConfigurationException

addExceptionType

public void addExceptionType(java.lang.Class<?> forClass)
                      throws RequestConfigurationException
Configures possible exceptions

Parameters:
forClass -
Throws:
RequestConfigurationException

invoke

public DynaCorbaResponse invoke()
                         throws java.lang.Exception
Invokes previously configured request

Returns:
Throws:
java.lang.Exception