org.jboss.cache.factories.context
Class OptimisticContextFactory

java.lang.Object
  extended by org.jboss.cache.factories.context.PessimisticContextFactory
      extended by org.jboss.cache.factories.context.OptimisticContextFactory
All Implemented Interfaces:
ContextFactory

Deprecated. will be removed when optimistic locking is removed.

@Deprecated
public class OptimisticContextFactory
extends PessimisticContextFactory

Constructs contexts for optimistic locking

Since:
3.0
Author:
Manik Surtani (manik AT jboss DOT org)

Constructor Summary
OptimisticContextFactory()
          Deprecated.  
 
Method Summary
 TransactionContext createTransactionContext(Transaction tx)
          Deprecated.  
 
Methods inherited from class org.jboss.cache.factories.context.PessimisticContextFactory
createInvocationContext, inject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptimisticContextFactory

public OptimisticContextFactory()
Deprecated. 
Method Detail

createTransactionContext

public TransactionContext createTransactionContext(Transaction tx)
                                            throws SystemException,
                                                   RollbackException
Deprecated. 
Specified by:
createTransactionContext in interface ContextFactory
Overrides:
createTransactionContext in class PessimisticContextFactory
Parameters:
tx - JTA transaction to associate the new context with
Returns:
a new transaction context
Throws:
SystemException - in the event of an invalid transaction
RollbackException - in the event of an invalid transaaction


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.