org.ow2.carol.rmi.interceptor.impl
Class BasicServiceContext<Data extends java.io.Serializable>

java.lang.Object
  extended by org.ow2.carol.rmi.interceptor.impl.BasicServiceContext<Data>
All Implemented Interfaces:
java.io.Serializable, JServiceContext

public class BasicServiceContext<Data extends java.io.Serializable>
extends java.lang.Object
implements JServiceContext

A service context that wraps serializable data.

Author:
Loris Bouzonnet
See Also:
Serialized Form

Constructor Summary
BasicServiceContext(int id, Data data)
           
 
Method Summary
 Data getContextData()
           
 int getContextId()
          the JServiceContext id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicServiceContext

public BasicServiceContext(int id,
                           Data data)
Method Detail

getContextData

public Data getContextData()
Returns:
the piggy-backed data

getContextId

public int getContextId()
Description copied from interface: JServiceContext
the JServiceContext id

Specified by:
getContextId in interface JServiceContext


Copyright © 2008 OW2 Consortium. All Rights Reserved.