org.jboss.cache.factories.context
Interface ContextFactory

All Known Implementing Classes:
MVCCContextFactory, OptimisticContextFactory, PessimisticContextFactory

public interface ContextFactory

This is the factory responsible for creating InvocationContexts and TransactionContexts for requests, based on the configuration used.

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

Method Summary
 InvocationContext createInvocationContext()
           
 TransactionContext createTransactionContext(Transaction tx)
           
 

Method Detail

createInvocationContext

InvocationContext createInvocationContext()
Returns:
a new invocation context

createTransactionContext

TransactionContext createTransactionContext(Transaction tx)
                                            throws SystemException,
                                                   RollbackException
Parameters:
tx - JTA transaction to associate the new context with
Returns:
a new transaction context
Throws:
RollbackException - in the event of an invalid transaaction
SystemException - in the event of an invalid transaction


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