org.jboss.weld
Class Validator

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

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

Checks a list of beans for DeploymentExceptions and their subclasses

Author:
Nicklas Karlsson

Constructor Summary
Validator()
           
 
Method Summary
 void cleanup()
           
 void validateBeanNames(BeanManagerImpl beanManager)
           
 void validateBeans(java.util.Collection<? extends javax.enterprise.inject.spi.Bean<?>> beans, java.util.Collection<RIBean<?>> specializedBeans, BeanManagerImpl manager)
           
 void validateDeployment(BeanManagerImpl manager, BeanDeployerEnvironment environment)
           
 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)
           
 
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

validateInjectionPoint

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

Parameters:
ij - the injection point to validate
declaringBean - the bean into which the injectionPoint has been injected, if null, certain validations aren't available
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(java.util.Collection<? extends javax.enterprise.inject.spi.Bean<?>> beans,
                          java.util.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 © 2008-2009 Seam Framework. All Rights Reserved.