Package org.jboss.weld.bootstrap
Class Validator
- java.lang.Object
-
- org.jboss.weld.bootstrap.Validator
-
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service
- Direct Known Subclasses:
ConcurrentValidator
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, Jozef Hartinger, Stuart Douglas, Ales Justin
-
-
Constructor Summary
Constructors Constructor Description Validator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheckBeanMetadataInjectionPoint(Object bean, javax.enterprise.inject.spi.InjectionPoint ip, Type expectedTypeArgument)voidcleanup()protected voidvalidateBean(javax.enterprise.inject.spi.Bean<?> bean, Collection<CommonBean<?>> specializedBeans, BeanManagerImpl manager, List<RuntimeException> problems)voidvalidateBeanNames(BeanManagerImpl beanManager)voidvalidateBeans(Collection<? extends javax.enterprise.inject.spi.Bean<?>> beans, BeanManagerImpl manager)protected voidvalidateDecorator(javax.enterprise.inject.spi.Decorator<?> decorator, Collection<CommonBean<?>> specializedBeans, BeanManagerImpl manager)voidvalidateDecorators(Collection<? extends javax.enterprise.inject.spi.Decorator<?>> decorators, BeanManagerImpl manager)voidvalidateDeployment(BeanManagerImpl manager, BeanDeployment deployment)voidvalidateEventMetadataInjectionPoint(javax.enterprise.inject.spi.InjectionPoint ip)protected voidvalidateGeneralBean(javax.enterprise.inject.spi.Bean<?> bean, BeanManagerImpl beanManager)voidvalidateInjectionPoint(javax.enterprise.inject.spi.InjectionPoint ij, BeanManagerImpl beanManager)Validate an injection pointvoidvalidateInjectionPointForDefinitionErrors(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> bean, BeanManagerImpl beanManager)Checks for definition errors associated with a givenInjectionPointvoidvalidateInjectionPointForDeploymentProblems(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> bean, BeanManagerImpl beanManager)Checks for deployment problems associated with a givenInjectionPointvoidvalidateInjectionPointPassivationCapable(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> resolvedBean, BeanManagerImpl beanManager)protected voidvalidateInterceptor(javax.enterprise.inject.spi.Interceptor<?> interceptor, BeanManagerImpl manager)voidvalidateInterceptorDecoratorInjectionPointPassivationCapable(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> resolvedBean, BeanManagerImpl beanManager, javax.enterprise.inject.spi.Bean<?> bean)voidvalidateInterceptors(Collection<? extends javax.enterprise.inject.spi.Interceptor<?>> interceptors, BeanManagerImpl manager)voidvalidateMetadataInjectionPoint(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> bean, MessageCallback<DefinitionException> messageCallback)protected voidvalidateObserverMethods(Iterable<ObserverInitializationContext<?,?>> observers, BeanManagerImpl beanManager)voidvalidateProducer(javax.enterprise.inject.spi.Producer<?> producer, BeanManagerImpl beanManager)voidvalidateProducers(Collection<javax.enterprise.inject.spi.Producer<?>> producers, BeanManagerImpl beanManager)protected voidvalidateRIBean(CommonBean<?> bean, BeanManagerImpl beanManager, Collection<CommonBean<?>> specializedBeans)Validate an RIBean.voidvalidateSpecialization(BeanManagerImpl manager)
-
-
-
Method Detail
-
validateGeneralBean
protected void validateGeneralBean(javax.enterprise.inject.spi.Bean<?> bean, BeanManagerImpl beanManager)
-
validateRIBean
protected void validateRIBean(CommonBean<?> bean, BeanManagerImpl beanManager, Collection<CommonBean<?>> specializedBeans)
Validate an RIBean. This includes validating whether two beans specialize the same bean- Parameters:
bean- the bean to validatebeanManager- the current managerspecializedBeans- the existing specialized beans
-
validateInjectionPoint
public void validateInjectionPoint(javax.enterprise.inject.spi.InjectionPoint ij, BeanManagerImpl beanManager)Validate an injection point- Parameters:
ij- the injection point to validatebeanManager- the bean manager
-
validateInjectionPointForDefinitionErrors
public void validateInjectionPointForDefinitionErrors(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> bean, BeanManagerImpl beanManager)Checks for definition errors associated with a givenInjectionPoint
-
validateMetadataInjectionPoint
public void validateMetadataInjectionPoint(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> bean, MessageCallback<DefinitionException> messageCallback)
-
validateEventMetadataInjectionPoint
public void validateEventMetadataInjectionPoint(javax.enterprise.inject.spi.InjectionPoint ip)
-
validateInjectionPointForDeploymentProblems
public void validateInjectionPointForDeploymentProblems(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> bean, BeanManagerImpl beanManager)Checks for deployment problems associated with a givenInjectionPoint
-
validateProducers
public void validateProducers(Collection<javax.enterprise.inject.spi.Producer<?>> producers, BeanManagerImpl beanManager)
-
validateProducer
public void validateProducer(javax.enterprise.inject.spi.Producer<?> producer, BeanManagerImpl beanManager)
-
validateInjectionPointPassivationCapable
public void validateInjectionPointPassivationCapable(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> resolvedBean, BeanManagerImpl beanManager)
-
validateInterceptorDecoratorInjectionPointPassivationCapable
public void validateInterceptorDecoratorInjectionPointPassivationCapable(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.inject.spi.Bean<?> resolvedBean, BeanManagerImpl beanManager, javax.enterprise.inject.spi.Bean<?> bean)
-
validateDeployment
public void validateDeployment(BeanManagerImpl manager, BeanDeployment deployment)
-
validateSpecialization
public void validateSpecialization(BeanManagerImpl manager)
-
validateBeans
public void validateBeans(Collection<? extends javax.enterprise.inject.spi.Bean<?>> beans, BeanManagerImpl manager)
-
validateBean
protected void validateBean(javax.enterprise.inject.spi.Bean<?> bean, Collection<CommonBean<?>> specializedBeans, BeanManagerImpl manager, List<RuntimeException> problems)
-
validateInterceptors
public void validateInterceptors(Collection<? extends javax.enterprise.inject.spi.Interceptor<?>> interceptors, BeanManagerImpl manager)
-
validateInterceptor
protected void validateInterceptor(javax.enterprise.inject.spi.Interceptor<?> interceptor, BeanManagerImpl manager)
-
validateDecorators
public void validateDecorators(Collection<? extends javax.enterprise.inject.spi.Decorator<?>> decorators, BeanManagerImpl manager)
-
validateDecorator
protected void validateDecorator(javax.enterprise.inject.spi.Decorator<?> decorator, Collection<CommonBean<?>> specializedBeans, BeanManagerImpl manager)
-
validateBeanNames
public void validateBeanNames(BeanManagerImpl beanManager)
-
validateObserverMethods
protected void validateObserverMethods(Iterable<ObserverInitializationContext<?,?>> observers, BeanManagerImpl beanManager)
-
checkBeanMetadataInjectionPoint
public static void checkBeanMetadataInjectionPoint(Object bean, javax.enterprise.inject.spi.InjectionPoint ip, Type expectedTypeArgument)
-
cleanup
public void cleanup()
- Specified by:
cleanupin interfaceorg.jboss.weld.bootstrap.api.Service
-
-