org.infinispan.factories.context
Class DefaultContextFactory

java.lang.Object
  extended by org.infinispan.factories.context.DefaultContextFactory
All Implemented Interfaces:
ContextFactory
Direct Known Subclasses:
DistContextFactory

public class DefaultContextFactory
extends Object
implements ContextFactory

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

Since:
4.0
Author:
Manik Surtani (manik@jboss.org)

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

Constructor Detail

DefaultContextFactory

public DefaultContextFactory()
Method Detail

createInvocationContext

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

createTransactionContext

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