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

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

public final class EjbValidator
extends Object

Validates session beans.

Version:
$Rev: 915746 $ $Date: 2010-02-24 12:43:43 +0200 (Wed, 24 Feb 2010) $

Method Summary
static void validateDecoratorOrInterceptor(Class<?> ejbClass)
          Validates session bean decorator/interceptor conditions.
static void validateEjbScopeType(BaseEjbBean<?> ejbBean)
          Validates session bean's scope.
static void validateGenericBeanType(Class<?> ejbClass, Class<? extends Annotation> scopeType)
          Check generic type conditions.
static void validateObserverMethods(BaseEjbBean<?> bean, Set<javax.enterprise.inject.spi.ObserverMethod<?>> observers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

validateEjbScopeType

public static void validateEjbScopeType(BaseEjbBean<?> ejbBean)
Validates session bean's scope.

Parameters:
ejbBean - ejb bean

validateDecoratorOrInterceptor

public static void validateDecoratorOrInterceptor(Class<?> ejbClass)
Validates session bean decorator/interceptor conditions.

Parameters:
ejbClass - ejb bean class

validateGenericBeanType

public static void validateGenericBeanType(Class<?> ejbClass,
                                           Class<? extends Annotation> scopeType)
Check generic type conditions.

Parameters:
ejbClass - ebj class
scopeType - scope type

validateObserverMethods

public static void validateObserverMethods(BaseEjbBean<?> bean,
                                           Set<javax.enterprise.inject.spi.ObserverMethod<?>> observers)


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