org.apache.webbeans.ejb.common.util
Class EjbUtility

java.lang.Object
  extended by org.apache.webbeans.ejb.common.util.EjbUtility

public final class EjbUtility
extends Object


Method Summary
static
<T> void
defineSpecializedData(Class<T> clazz, BaseEjbBean<T> ejbBean)
           
static
<T> void
fireEvents(Class<T> clazz, BaseEjbBean<T> ejbBean, javax.enterprise.inject.spi.ProcessAnnotatedType<T> event)
           
static boolean isBusinessMethod(Method method, BaseEjbBean<?> bean)
          Check if a given Method is a business method of the given enterprise bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fireEvents

public static <T> void fireEvents(Class<T> clazz,
                                  BaseEjbBean<T> ejbBean,
                                  javax.enterprise.inject.spi.ProcessAnnotatedType<T> event)

defineSpecializedData

public static <T> void defineSpecializedData(Class<T> clazz,
                                             BaseEjbBean<T> ejbBean)

isBusinessMethod

public static boolean isBusinessMethod(Method method,
                                       BaseEjbBean<?> bean)
Check if a given Method is a business method of the given enterprise bean. FIXME: While remote interfaces aren't part of a 299 beans types, method invocations of non-contextual references (@EJB) to remote interfaces are business method invocations nonetheless. Not presently accounted for here.

Parameters:
method - the method of interest
bean - the Contextual
Returns:
true if the Method could be a business method invocation


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.