org.objectweb.jonas.rmifilters
Class TSHandler

java.lang.Object
  |
  +--org.objectweb.jonas.rmifilters.TSHandler
All Implemented Interfaces:
org.objectweb.david.apis.services.handler.Service

public class TSHandler
extends java.lang.Object
implements org.objectweb.david.apis.services.handler.Service


Constructor Summary
TSHandler(org.objectweb.jonathan.apis.kernel.Context c, java.lang.Object[] used_components)
          Builds a new Jeremie transaction service handler instance.
 
Method Summary
 org.omg.IOP.ServiceContext getReplyContext(int id, org.objectweb.jonathan.apis.kernel.Context k)
          Returns a reply context.
 org.omg.IOP.ServiceContext getRequestContext(int id, boolean r, byte[] key, org.objectweb.jonathan.apis.kernel.Context k)
          Returns a request context.
 void handleReplyContext(org.omg.IOP.ServiceContext context, int id, org.objectweb.jonathan.apis.kernel.Context k)
          This method is called by the services handler to let the operations related to the target service be performed on reply arrival.
 void handleRequestContext(org.omg.IOP.ServiceContext context, int id, boolean r, byte[] key, org.objectweb.jonathan.apis.kernel.Context k)
          This method is called by the services handler to let the operations related to the target service be performed on request arrival.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TSHandler

public TSHandler(org.objectweb.jonathan.apis.kernel.Context c,
                 java.lang.Object[] used_components)
          throws org.objectweb.jonathan.apis.kernel.JonathanException
Builds a new Jeremie transaction service handler instance.
Parameters:
c - unused
used_components - the components used to initialize the new TSHandler.
Throws:
org.objectweb.jonathan.apis.kernel.JonathanException - if something goes wrong.
Method Detail

getRequestContext

public org.omg.IOP.ServiceContext getRequestContext(int id,
                                                    boolean r,
                                                    byte[] key,
                                                    org.objectweb.jonathan.apis.kernel.Context k)
Returns a request context.
Specified by:
getRequestContext in interface org.objectweb.david.apis.services.handler.Service
Returns:
a service context.

getReplyContext

public org.omg.IOP.ServiceContext getReplyContext(int id,
                                                  org.objectweb.jonathan.apis.kernel.Context k)
Returns a reply context.
Specified by:
getReplyContext in interface org.objectweb.david.apis.services.handler.Service
Returns:
a service context.

handleRequestContext

public void handleRequestContext(org.omg.IOP.ServiceContext context,
                                 int id,
                                 boolean r,
                                 byte[] key,
                                 org.objectweb.jonathan.apis.kernel.Context k)
This method is called by the services handler to let the operations related to the target service be performed on request arrival.
Specified by:
handleRequestContext in interface org.objectweb.david.apis.services.handler.Service
Parameters:
context - the service context of the request;

handleReplyContext

public void handleReplyContext(org.omg.IOP.ServiceContext context,
                               int id,
                               org.objectweb.jonathan.apis.kernel.Context k)
This method is called by the services handler to let the operations related to the target service be performed on reply arrival.
Specified by:
handleReplyContext in interface org.objectweb.david.apis.services.handler.Service
Parameters:
context - the service context of the reply;