org.infinispan.factories.context
Class ContextFactory
java.lang.Object
org.infinispan.factories.context.ContextFactory
public class ContextFactory
- extends Object
This is the factory responsible for creating InvocationContext
s and TransactionContext
s for requests,
based on the configuration used.
- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextFactory
public ContextFactory()
createInvocationContext
public InvocationContext createInvocationContext()
- Returns:
- a new invocation context
createTransactionContext
public 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.