org.apache.geronimo.transaction
Class DefaultInstanceContext

java.lang.Object
  extended byorg.apache.geronimo.transaction.DefaultInstanceContext
All Implemented Interfaces:
InstanceContext

public class DefaultInstanceContext
extends Object
implements InstanceContext

Simple implementation of ComponentContext satisfying invariant.

Version:
$Revision: 1.1 $ $Date: 2004/05/31 23:37:05 $

Constructor Summary
DefaultInstanceContext(Set unshareableResources, Set applicationManagedSecurityResources)
           
 
Method Summary
 void afterCommit(boolean status)
           
 void associate()
           
 void beforeCommit()
           
 void flush()
           
 Set getApplicationManagedSecurityResources()
           
 Map getConnectionManagerMap()
          IMPORTANT INVARIANT: this should always return a map, never null.
 Object getContainerId()
           
 Object getId()
           
 Set getUnshareableResources()
           
 void setId(Object id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultInstanceContext

public DefaultInstanceContext(Set unshareableResources,
                              Set applicationManagedSecurityResources)
Method Detail

getId

public Object getId()
Specified by:
getId in interface InstanceContext

setId

public void setId(Object id)
Specified by:
setId in interface InstanceContext

getContainerId

public Object getContainerId()
Specified by:
getContainerId in interface InstanceContext

associate

public void associate()
               throws Exception
Specified by:
associate in interface InstanceContext
Throws:
Exception

flush

public void flush()
           throws Exception
Specified by:
flush in interface InstanceContext
Throws:
Exception

beforeCommit

public void beforeCommit()
                  throws Exception
Specified by:
beforeCommit in interface InstanceContext
Throws:
Exception

afterCommit

public void afterCommit(boolean status)
                 throws Exception
Specified by:
afterCommit in interface InstanceContext
Throws:
Exception

getConnectionManagerMap

public Map getConnectionManagerMap()
Description copied from interface: InstanceContext
IMPORTANT INVARIANT: this should always return a map, never null.

Specified by:
getConnectionManagerMap in interface InstanceContext
Returns:
map of ConnectionManager to (list of ) managed connection info objects.

getUnshareableResources

public Set getUnshareableResources()
Specified by:
getUnshareableResources in interface InstanceContext

getApplicationManagedSecurityResources

public Set getApplicationManagedSecurityResources()
Specified by:
getApplicationManagedSecurityResources in interface InstanceContext


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.