| java.lang.Object org.jboss.ejb.AllowedOperationsAssociation
AllowedOperationsAssociation | final public class AllowedOperationsAssociation implements AllowedOperationsFlags(Code) | | Associates the current thread with a stack of flags that
indicate the callers current ejb method.
According to the EJB2.1 spec not all context methods can be accessed at all times
For example ctx.getPrimaryKey() should throw an IllegalStateException when called from within ejbCreate()
author: Thomas.Diesler@jboss.org author: Dimitris.Andreadis@jboss.org version: $Revision: 57209 $ |
assertAllowedIn | public static void assertAllowedIn(String ctxMethod, int flags)(Code) | | Throw an IllegalStateException if the current inMethodFlag
does not match the given flags
|
peekInMethodFlag | public static int peekInMethodFlag()(Code) | | Return the current inMethodFlag, or -1 if there is none
|
peekInMethodFlagAsString | public static String peekInMethodFlagAsString()(Code) | | Return the current inMethodFlag in String form,
or null if there is none
|
popInMethodFlag | public static void popInMethodFlag()(Code) | | Reset when the instance exits an ejb method
|
pushInMethodFlag | public static void pushInMethodFlag(int inMethodFlag)(Code) | | Set when the instance enters an ejb method, reset on exit
Parameters: inMethodFlag - one of the IN_METHOD contants or null |
|
|