at.gv.egovernment.moa.spss.server.transaction
Class TransactionContextManager
java.lang.Object
|
+--at.gv.egovernment.moa.spss.server.transaction.TransactionContextManager
- public class TransactionContextManager
- extends Object
Provides each thread with an instance of TransactionContext
.
The single instance of the TransactionContextManager
should be
used to access contextual information for each web service transaction, e.g.
the transaction ID, MOA configuration, client certificate, etc.
- Author:
- Stefan Knirsch, Patrick Peck
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionContextManager
protected TransactionContextManager()
- Creates a new
TransactionContextManager
.
Protected to disallow direct instantiation.
getInstance
public static TransactionContextManager getInstance()
- Get the single instance of
TransactionContextManager
.
- Returns:
- The single instanc of
TransactionContextManager
.
setTransactionContext
public void setTransactionContext(TransactionContext txContext)
- Set the
TransactionContext
for the current thread.
- Parameters:
txContext
- The TransactionContext
for this thread.
getTransactionContext
public TransactionContext getTransactionContext()
- Get the
TransactionContext
for the current thread.
- Returns:
- The
TransactionContext
for the current thread or
null
, if none has been set (or if this method is being invoked
outside the bounds of a transaction).