org.jboss.weld.bootstrap
Class Validator

java.lang.Object
  extended by org.jboss.weld.bootstrap.Validator
All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service

public class Validator
extends Object
implements org.jboss.weld.bootstrap.api.Service

Checks a list of beans for DeploymentExceptions and their subclasses

Author:
Nicklas Karlsson, David Allen, Stuart Douglas, Ales Justin

Constructor Summary
Validator()
           
 
Method Summary
 void cleanup()
           
protected  boolean isPassivationCapabilityCheckRequired(BeanManagerImpl beanManager, AbstractClassBean<?> classBean)
          Returns true if the bean should be validated according to CDI 1.0 (6.6.4).
 void validateBeanNames(BeanManagerImpl beanManager)
           
 void validateBeans(Collection<? extends javax.enterprise.inject.spi.Bean<?>> beans, Collection<RIBean<?>> specializedBeans, BeanManagerImpl manager)
           
 void validateDecorators(Collection<? extends javax.enterprise.inject.spi.Decorator<?>> beans, Collection<RIBean<?>> specializedBeans, BeanManagerImpl manager)
           
 void validateDeployment(BeanManagerImpl manager, BeanDeployerEnvironment environment)
           
 void validateInjectionPoint(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> bean, BeanManagerImpl beanManager)
          Variation of the validateInjectionPoint method which allows the bean to be defined explicitly (used for disposer method validation)
 void validateInjectionPoint(javax.enterprise.inject.spi.InjectionPoint ij, BeanManagerImpl beanManager)
          Validate an injection point
 void validateInjectionPointPassivationCapable(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> resolvedBean, BeanManagerImpl beanManager)
           
 void validateInjectionTarget(javax.enterprise.inject.spi.InjectionTarget<?> injectionTarget, BeanManagerImpl beanManager)
           
 void validateInterceptors(Collection<? extends javax.enterprise.inject.spi.Interceptor<?>> interceptors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator

public Validator()
Method Detail

isPassivationCapabilityCheckRequired

protected boolean isPassivationCapabilityCheckRequired(BeanManagerImpl beanManager,
                                                       AbstractClassBean<?> classBean)
Returns true if the bean should be validated according to CDI 1.0 (6.6.4). This is the case if the bean declares a passivating scope or is a SFSB.


validateInjectionPoint

public void validateInjectionPoint(javax.enterprise.inject.spi.InjectionPoint ij,
                                   BeanManagerImpl beanManager)
Validate an injection point

Parameters:
ij - the injection point to validate
beanManager - the bean manager

validateInjectionPoint

public void validateInjectionPoint(javax.enterprise.inject.spi.InjectionPoint ij,
                                   javax.enterprise.inject.spi.Bean<?> bean,
                                   BeanManagerImpl beanManager)
Variation of the validateInjectionPoint method which allows the bean to be defined explicitly (used for disposer method validation)


validateInjectionTarget

public void validateInjectionTarget(javax.enterprise.inject.spi.InjectionTarget<?> injectionTarget,
                                    BeanManagerImpl beanManager)

validateInjectionPointPassivationCapable

public void validateInjectionPointPassivationCapable(javax.enterprise.inject.spi.InjectionPoint ij,
                                                     javax.enterprise.inject.spi.Bean<?> resolvedBean,
                                                     BeanManagerImpl beanManager)

validateDeployment

public void validateDeployment(BeanManagerImpl manager,
                               BeanDeployerEnvironment environment)

validateBeans

public void validateBeans(Collection<? extends javax.enterprise.inject.spi.Bean<?>> beans,
                          Collection<RIBean<?>> specializedBeans,
                          BeanManagerImpl manager)

validateInterceptors

public void validateInterceptors(Collection<? extends javax.enterprise.inject.spi.Interceptor<?>> interceptors)

validateDecorators

public void validateDecorators(Collection<? extends javax.enterprise.inject.spi.Decorator<?>> beans,
                               Collection<RIBean<?>> specializedBeans,
                               BeanManagerImpl manager)

validateBeanNames

public void validateBeanNames(BeanManagerImpl beanManager)

cleanup

public void cleanup()
Specified by:
cleanup in interface org.jboss.weld.bootstrap.api.Service


Copyright © 2013 Seam Framework. All Rights Reserved.