You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by da...@apache.org on 2007/04/26 21:49:29 UTC
svn commit: r532843 -
/incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContext.java
Author: dain
Date: Thu Apr 26 12:49:28 2007
New Revision: 532843
URL: http://svn.apache.org/viewvc?view=rev&rev=532843
Log:
Stateful beans have a different allowed operations set for lifecycle
Modified:
incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContext.java
Modified: incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContext.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContext.java?view=diff&rev=532843&r1=532842&r2=532843
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContext.java (original)
+++ incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContext.java Thu Apr 26 12:49:28 2007
@@ -69,6 +69,40 @@
}
/**
+ * PostConstruct, Pre-Destroy lifecycle callback interceptor methods
+ */
+ public static class LifecycleSessionState extends SessionState {
+
+ public MessageContext getMessageContext() throws IllegalStateException {
+ throw new IllegalStateException();
+ }
+
+ public Class getInvokedBusinessInterface() {
+ throw new IllegalStateException();
+ }
+
+ public void setRollbackOnly(TransactionManager transactionManager) throws IllegalStateException {
+ throw new IllegalStateException();
+ }
+
+ public boolean getRollbackOnly(TransactionManager transactionManager) throws IllegalStateException {
+ throw new IllegalStateException();
+ }
+
+ public boolean isMessageContextAccessAllowed() {
+ return false;
+ }
+
+ public boolean isTimerAccessAllowed() {
+ return false;
+ }
+
+ public boolean isTimerMethodAllowed() {
+ return false;
+ }
+ }
+
+ /**
* afterBegin
* beforeCompletion
*/