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
-
-
Method Summary
-
-
-
Constructor Detail
-
Validator
public Validator(Set<PlugableValidator> plugableValidators, Map<Bean<?>,Boolean> resolvedInjectionPoints)
-
-
Method Detail
-
validateGeneralBean
protected void validateGeneralBean(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(InjectionPoint ij, BeanManagerImpl beanManager)
Validate an injection point- Parameters:
ij
- the injection point to validatebeanManager
- the bean manager
-
validateInjectionPointForDefinitionErrors
public void validateInjectionPointForDefinitionErrors(InjectionPoint ij, Bean<?> bean, BeanManagerImpl beanManager)
Checks for definition errors associated with a givenInjectionPoint
-
validateMetadataInjectionPoint
public void validateMetadataInjectionPoint(InjectionPoint ij, Bean<?> bean, MessageCallback<DefinitionException> messageCallback)
-
validateEventMetadataInjectionPoint
public void validateEventMetadataInjectionPoint(InjectionPoint ip)
-
validateInjectionPointForDeploymentProblems
public void validateInjectionPointForDeploymentProblems(InjectionPoint ij, Bean<?> bean, BeanManagerImpl beanManager)
Checks for deployment problems associated with a givenInjectionPoint
-
validateProducers
public void validateProducers(Collection<Producer<?>> producers, BeanManagerImpl beanManager)
-
validateProducer
public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager)
-
validateInjectionPointPassivationCapable
public void validateInjectionPointPassivationCapable(InjectionPoint ij, Bean<?> resolvedBean, BeanManagerImpl beanManager)
-
validateInterceptorDecoratorInjectionPointPassivationCapable
public void validateInterceptorDecoratorInjectionPointPassivationCapable(InjectionPoint ij, Bean<?> resolvedBean, BeanManagerImpl beanManager, Bean<?> bean)
-
validateDeployment
public void validateDeployment(BeanManagerImpl manager, BeanDeployment deployment)
-
validateSpecialization
public void validateSpecialization(BeanManagerImpl manager)
-
validateBeans
public void validateBeans(Collection<? extends Bean<?>> beans, BeanManagerImpl manager)
-
validateBean
protected void validateBean(Bean<?> bean, Collection<CommonBean<?>> specializedBeans, BeanManagerImpl manager, List<RuntimeException> problems)
-
validateInterceptors
public void validateInterceptors(Collection<? extends Interceptor<?>> interceptors, BeanManagerImpl manager)
-
validateInterceptor
protected void validateInterceptor(Interceptor<?> interceptor, BeanManagerImpl manager)
-
validateDecorators
public void validateDecorators(Collection<? extends Decorator<?>> decorators, BeanManagerImpl manager)
-
validateDecorator
protected void validateDecorator(Decorator<?> decorator, Collection<CommonBean<?>> specializedBeans, BeanManagerImpl manager)
-
validateBeanNames
public void validateBeanNames(BeanManagerImpl beanManager)
-
validateBeanName
protected void validateBeanName(String name, SetMultimap<String,Bean<?>> namedAccessibleBeans, List<String> accessibleNamespaces, BeanManagerImpl beanManager)
-
validateObserverMethods
protected void validateObserverMethods(Iterable<ObserverInitializationContext<?,?>> observers, BeanManagerImpl beanManager)
-
checkBeanMetadataInjectionPoint
public static void checkBeanMetadataInjectionPoint(Object bean, InjectionPoint ip, Type expectedTypeArgument)
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceorg.jboss.weld.bootstrap.api.Service
-
isResolved
public boolean isResolved(Bean<?> bean)
-
clearResolved
public void clearResolved()
-
-