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:
  • Field Details

  • Constructor Details

    • AllowedMethodsInformation

      protected AllowedMethodsInformation(boolean beanManagedTransaction)
  • Method Details

    • 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 method
      invocationType - 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 method
      callback - the type of invocation that caused it to be disabled