dain 2005/02/25 18:06:16
Modified: modules/openejb-builder/src/test/org/openejb/deployment
MockEJBInstanceContext.java
Log:
Added support for in-tx cacheing back in
This unturned a load of places that were not handling transaction contexts
properly and bugs in the context itself
Changed instance contexts so they track entrancy and can be killed as
required by the spec
Made all instance context fields final
Revision Changes Path
1.3 +20 -10
openejb/modules/openejb-builder/src/test/org/openejb/deployment/MockEJBInstanceContext.java
Index: MockEJBInstanceContext.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/test/org/openejb/deployment/MockEJBInstanceContext.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MockEJBInstanceContext.java 14 Feb 2005 19:50:57 -0000 1.2
+++ MockEJBInstanceContext.java 25 Feb 2005 23:06:16 -0000 1.3
@@ -37,7 +37,6 @@
}
public void setOperation(EJBOperation operation) {
-
}
public EJBProxyFactory getProxyFactory() {
@@ -53,7 +52,6 @@
}
public void setTimerServiceAvailable(boolean available) {
-
}
public boolean setTimerState(EJBOperation operation) {
@@ -64,28 +62,23 @@
return null;
}
- public void setId(Object id) {
-
- }
-
public Object getContainerId() {
return null;
}
public void associate() throws Throwable {
+ }
+ public void unassociate() throws Throwable {
}
public void flush() throws Throwable {
-
}
public void beforeCommit() throws Exception {
-
}
public void afterCommit(boolean status) throws Exception {
-
}
public Map getConnectionManagerMap() {
@@ -98,5 +91,22 @@
public Set getApplicationManagedSecurityResources() {
return null;
+ }
+
+ public void die() {
+ }
+
+ public boolean isDead() {
+ return false;
+ }
+
+ public boolean isInCall() {
+ return false;
+ }
+
+ public void enter() {
+ }
+
+ public void exit() {
}
}