Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.geronimo.transaction
Class DefaultInstanceContext  view DefaultInstanceContext download DefaultInstanceContext.java

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

public class DefaultInstanceContext
extends java.lang.Object
implements InstanceContext

Simple implementation of ComponentContext satisfying invariant.

Version:
$Rev: 155376 $ $Date: 2005-02-25 15:10:24 -0800 (Fri, 25 Feb 2005) $

Field Summary
private  java.util.Set applicationManagedSecurityResources
           
private  int callDepth
           
private  java.util.Map connectionManagerMap
           
private  boolean dead
           
private  java.util.Set unshareableResources
           
 
Constructor Summary
DefaultInstanceContext(java.util.Set unshareableResources, java.util.Set applicationManagedSecurityResources)
           
 
Method Summary
 void afterCommit(boolean status)
           
 void associate()
           
 void beforeCommit()
           
 void die()
           
 void enter()
           
 void exit()
           
 void flush()
           
 java.util.Set getApplicationManagedSecurityResources()
           
 java.util.Map getConnectionManagerMap()
          IMPORTANT INVARIANT: this should always return a map, never null.
 java.lang.Object getContainerId()
           
 java.lang.Object getId()
           
 java.util.Set getUnshareableResources()
           
 boolean isDead()
           
 boolean isInCall()
           
 void unassociate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionManagerMap

private final java.util.Map connectionManagerMap

unshareableResources

private final java.util.Set unshareableResources

applicationManagedSecurityResources

private final java.util.Set applicationManagedSecurityResources

callDepth

private int callDepth

dead

private boolean dead
Constructor Detail

DefaultInstanceContext

public DefaultInstanceContext(java.util.Set unshareableResources,
                              java.util.Set applicationManagedSecurityResources)
Method Detail

getId

public java.lang.Object getId()
Specified by:
getId in interface InstanceContext

getContainerId

public java.lang.Object getContainerId()
Specified by:
getContainerId in interface InstanceContext

associate

public void associate()
               throws java.lang.Exception
Specified by:
associate in interface InstanceContext

flush

public void flush()
           throws java.lang.Exception
Specified by:
flush in interface InstanceContext

beforeCommit

public void beforeCommit()
                  throws java.lang.Exception
Specified by:
beforeCommit in interface InstanceContext

afterCommit

public void afterCommit(boolean status)
                 throws java.lang.Exception
Specified by:
afterCommit in interface InstanceContext

unassociate

public void unassociate()
                 throws java.lang.Throwable
Specified by:
unassociate in interface InstanceContext

getConnectionManagerMap

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

Specified by:
getConnectionManagerMap in interface InstanceContext

getUnshareableResources

public java.util.Set getUnshareableResources()
Specified by:
getUnshareableResources in interface InstanceContext

getApplicationManagedSecurityResources

public java.util.Set getApplicationManagedSecurityResources()
Specified by:
getApplicationManagedSecurityResources in interface InstanceContext

isInCall

public boolean isInCall()
Specified by:
isInCall in interface InstanceContext

enter

public void enter()
Specified by:
enter in interface InstanceContext

exit

public void exit()
Specified by:
exit in interface InstanceContext

isDead

public boolean isDead()
Specified by:
isDead in interface InstanceContext

die

public void die()
Specified by:
die in interface InstanceContext