org.jboss.ejb3.security
Class SecurityHelper

java.lang.Object
  extended by org.jboss.ejb3.security.SecurityHelper

public class SecurityHelper
extends java.lang.Object

Helper class for the EJB3 Security Interceptors

Since:
Aug 23, 2007

Constructor Summary
SecurityHelper()
           
 
Method Summary
 boolean containsTimeoutAnnotation(EJBContainer container, java.lang.reflect.Method meth)
          Checks whether a method declares a Timeout annotation
 boolean isEJBTimeOutCallback(java.lang.reflect.Method m)
          Check if the method is an EJBTimeOut method
 boolean isMDB(Container container)
          Determine if the container is a MDB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityHelper

public SecurityHelper()
Method Detail

isEJBTimeOutCallback

public boolean isEJBTimeOutCallback(java.lang.reflect.Method m)
Check if the method is an EJBTimeOut method

Parameters:
m - method
Returns:
true if it is a ejb timeout callback

containsTimeoutAnnotation

public boolean containsTimeoutAnnotation(EJBContainer container,
                                         java.lang.reflect.Method meth)
Checks whether a method declares a Timeout annotation

Parameters:
container - EJBContainer
meth - The method under investigation for an annotation
Returns:
@Timeout annotation exists

isMDB

public boolean isMDB(Container container)
Determine if the container is a MDB

Parameters:
container -
Returns: