Class AllowedMethodsInformation
java.lang.Object
org.jboss.as.ejb3.component.allowedmethods.AllowedMethodsInformation
- Direct Known Subclasses:
MessageDrivenAllowedMethodsInformation,SessionBeanAllowedMethodsInformation
This class and its subclasses can be used to determine if a given method
is allowed to be invoked.
- Author:
- Stuart Douglas
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AllowedMethodsInformationstatic final AllowedMethodsInformation -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAllowedMethodsInformation(boolean beanManagedTransaction) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
INSTANCE_BMT
-
INSTANCE_CMT
-
-
Constructor Details
-
AllowedMethodsInformation
protected AllowedMethodsInformation(boolean beanManagedTransaction)
-
-
Method Details
-
setup
-
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
Checks that the current method -
realCheckPermission
-
throwException
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
-