org.slim3.transaction.jta
Class TransactionSynchronizationRegistryImpl.SynchronizationContext

java.lang.Object
  extended by org.slim3.transaction.jta.TransactionSynchronizationRegistryImpl.SynchronizationContext
All Implemented Interfaces:
Synchronization
Enclosing class:
TransactionSynchronizationRegistryImpl

protected class TransactionSynchronizationRegistryImpl.SynchronizationContext
extends Object
implements Synchronization

The synchronization context attached to transaction.


Field Summary
protected  List<Synchronization> interposedSynchronizations
          The list for synchronization.
protected  Map<Object,Object> resourceMap
          The map for resource.
 
Constructor Summary
protected TransactionSynchronizationRegistryImpl.SynchronizationContext()
           
 
Method Summary
 void afterCompletion(int status)
           
 void beforeCompletion()
           
 Object getResource(Object key)
          Returns the resource.
 void putResource(Object key, Object resource)
          Puts the resource.
 void registerInterposedSynchronization(Synchronization sync)
          Registers the synchronization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interposedSynchronizations

protected List<Synchronization> interposedSynchronizations
The list for synchronization.


resourceMap

protected Map<Object,Object> resourceMap
The map for resource.

Constructor Detail

TransactionSynchronizationRegistryImpl.SynchronizationContext

protected TransactionSynchronizationRegistryImpl.SynchronizationContext()
Method Detail

registerInterposedSynchronization

public void registerInterposedSynchronization(Synchronization sync)
Registers the synchronization.

Parameters:
sync - the synchronization

putResource

public void putResource(Object key,
                        Object resource)
Puts the resource.

Parameters:
key - the key
resource - the resource

getResource

public Object getResource(Object key)
Returns the resource.

Parameters:
key - the key
Returns:
the resource

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface Synchronization

afterCompletion

public void afterCompletion(int status)
Specified by:
afterCompletion in interface Synchronization


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.