org.jboss.cache.factories.context
Class PessimisticContextFactory

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

Deprecated. will be removed when pessimistic locking is removed.

@Deprecated
public class PessimisticContextFactory
extends Object
implements ContextFactory

Constructs contexts for pessimistic locking

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

Constructor Summary
PessimisticContextFactory()
          Deprecated.  
 
Method Summary
 InvocationContext createInvocationContext()
          Deprecated.  
 TransactionContext createTransactionContext(Transaction tx)
          Deprecated.  
 void inject(DataContainer container)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PessimisticContextFactory

public PessimisticContextFactory()
Deprecated. 
Method Detail

inject

public void inject(DataContainer container)
Deprecated. 

createInvocationContext

public InvocationContext createInvocationContext()
Deprecated. 
Specified by:
createInvocationContext in interface ContextFactory
Returns:
a new invocation context

createTransactionContext

public TransactionContext createTransactionContext(Transaction tx)
                                            throws SystemException,
                                                   RollbackException
Deprecated. 
Specified by:
createTransactionContext in interface ContextFactory
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.