org.apache.geronimo.transaction
Class DefaultInstanceContext
java.lang.Object
org.apache.geronimo.transaction.DefaultInstanceContext
- All Implemented Interfaces:
- InstanceContext
- public class DefaultInstanceContext
- extends Object
- implements InstanceContext
Simple implementation of ComponentContext satisfying invariant.
- Version:
- $Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultInstanceContext
public DefaultInstanceContext(Set unshareableResources,
Set applicationManagedSecurityResources)
getId
public Object getId()
- Specified by:
getId
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
unassociate
public void unassociate()
throws Throwable
- Specified by:
unassociate
in interface InstanceContext
- Throws:
Throwable
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
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
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.