org.jboss.ejb3.security
Class SecurityHelper

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

public class SecurityHelper
extends Object

Helper class for the EJB3 Security Interceptors

Since:
Aug 23, 2007
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Constructor Summary
SecurityHelper()
           
 
Method Summary
 boolean containsTimeoutAnnotation(EJBContainer container, Method meth)
          Checks whether a method declares a Timeout annotation
 boolean isEJBTimeOutCallback(Method m)
          Check if the method is an EJBTimeOut method
 boolean isLocalCall(org.jboss.aop.joinpoint.MethodInvocation mi)
          Check whether an invocation is local or remote
 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

isLocalCall

public boolean isLocalCall(org.jboss.aop.joinpoint.MethodInvocation mi)
Check whether an invocation is local or remote

Parameters:
mi - method invocation
Returns:
true - local call

isEJBTimeOutCallback

public boolean isEJBTimeOutCallback(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,
                                         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:


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.