edu.cmu.aura.service
Class PrimitiveServiceSkel

java.lang.Object
  |
  +--edu.cmu.aura.service.PrimitiveServiceSkel
All Implemented Interfaces:
edu.cmu.aura.service.rpc.Skel

public class PrimitiveServiceSkel
extends java.lang.Object
implements edu.cmu.aura.service.rpc.Skel

PrimitiveServiceSkel is the skeleton that routes incoming calls to the actual PrimitiveService implementation. Services should generally extend SimpleService rather than use this class directly.

See Also:
PrimitiveService

Constructor Summary
PrimitiveServiceSkel(PrimitiveService primitiveService, edu.cmu.aura.service.rpc.SkelServer skelServer)
          Create a new PrimitiveServiceSkel that routes calls to a given PrimitiveService.
 
Method Summary
 java.lang.Object callMethod(java.lang.String methodName, java.util.ArrayList parameters)
          Invoke a specific method on the PrimitiveService.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveServiceSkel

public PrimitiveServiceSkel(PrimitiveService primitiveService,
                            edu.cmu.aura.service.rpc.SkelServer skelServer)
Create a new PrimitiveServiceSkel that routes calls to a given PrimitiveService.

Parameters:
primitiveService - the primitiveService to route calls to.
skelServer - the SkelServer that receives incoming calls.
Method Detail

callMethod

public java.lang.Object callMethod(java.lang.String methodName,
                                   java.util.ArrayList parameters)
                            throws java.lang.Exception
Invoke a specific method on the PrimitiveService.

Specified by:
callMethod in interface edu.cmu.aura.service.rpc.Skel
Parameters:
methodName - the method to invoke.
parameters - the parameters to the method.
Returns:
the returned Object from the method.
java.lang.Exception