Class AllowedMethodsInformation
- java.lang.Object
-
- org.jboss.as.ejb3.component.allowedmethods.AllowedMethodsInformation
-
- Direct Known Subclasses:
MessageDrivenAllowedMethodsInformation,SessionBeanAllowedMethodsInformation
public class AllowedMethodsInformation extends Object
This class and its subclasses can be used to determine if a given method is allowed to be invoked.- Author:
- Stuart Douglas
- See Also:
CurrentInvocationContext,CurrentSynchronizationCallback
-
-
Field Summary
Fields Modifier and Type Field Description static AllowedMethodsInformationINSTANCE_BMTstatic AllowedMethodsInformationINSTANCE_CMT
-
Constructor Summary
Constructors Modifier Constructor Description protectedAllowedMethodsInformation(boolean beanManagedTransaction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidadd(Set<org.jboss.as.ejb3.component.allowedmethods.AllowedMethodsInformation.DeniedSyncMethodKey> otherDenied, CurrentSynchronizationCallback.CallbackType callbackType, MethodType timerServiceMethod)protected static voidadd(Set<DeniedMethodKey> otherDenied, InvocationType setEntityContext, MethodType timerServiceMethod)static voidcheckAllowed(MethodType methodType)Checks that the current methodprotected voidrealCheckPermission(MethodType methodType, InvocationType invocationType)protected voidsetup(Set<DeniedMethodKey> denied)protected voidthrowException(MethodType methodType, InvocationType invocationType)throw an exception when a method cannot be invokedprotected voidthrowException(MethodType methodType, CurrentSynchronizationCallback.CallbackType callback)throw an exception when a method cannot be invoked
-
-
-
Field Detail
-
INSTANCE_BMT
public static final AllowedMethodsInformation INSTANCE_BMT
-
INSTANCE_CMT
public static final AllowedMethodsInformation INSTANCE_CMT
-
-
Method Detail
-
setup
protected void setup(Set<DeniedMethodKey> denied)
-
add
protected static void add(Set<DeniedMethodKey> otherDenied, InvocationType setEntityContext, MethodType timerServiceMethod)
-
add
protected static void add(Set<org.jboss.as.ejb3.component.allowedmethods.AllowedMethodsInformation.DeniedSyncMethodKey> otherDenied, CurrentSynchronizationCallback.CallbackType callbackType, MethodType timerServiceMethod)
-
checkAllowed
public static void checkAllowed(MethodType methodType)
Checks that the current method
-
realCheckPermission
protected void realCheckPermission(MethodType methodType, InvocationType invocationType)
-
throwException
protected void throwException(MethodType methodType, InvocationType invocationType)
throw an exception when a method cannot be invoked- Parameters:
methodType- the methodinvocationType- the type of invocation that caused it to be disabled
-
throwException
protected void throwException(MethodType methodType, CurrentSynchronizationCallback.CallbackType callback)
throw an exception when a method cannot be invoked- Parameters:
methodType- the methodcallback- the type of invocation that caused it to be disabled
-
-