public class ValidatorBean extends Object implements Bean<Validator>, PassivationCapable
Bean
representing a Validator
. There is one instance of this type representing the default
validator and optionally another instance representing the HV validator in case the default provider is not HV.Constructor and Description |
---|
ValidatorBean(BeanManager beanManager,
Bean<?> validatorFactoryBean,
ValidationProviderHelper validationProviderHelper) |
Modifier and Type | Method and Description |
---|---|
Validator |
create(CreationalContext<Validator> ctx) |
void |
destroy(Validator instance,
CreationalContext<Validator> ctx) |
Class<?> |
getBeanClass() |
String |
getId() |
Set<InjectionPoint> |
getInjectionPoints() |
String |
getName() |
Set<Annotation> |
getQualifiers() |
Class<? extends Annotation> |
getScope() |
Set<Class<? extends Annotation>> |
getStereotypes() |
Set<Type> |
getTypes() |
boolean |
isAlternative() |
boolean |
isNullable() |
String |
toString() |
public ValidatorBean(BeanManager beanManager, Bean<?> validatorFactoryBean, ValidationProviderHelper validationProviderHelper)
public Class<?> getBeanClass()
getBeanClass
in interface Bean<Validator>
public Set<InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface Bean<Validator>
public String getName()
getName
in interface BeanAttributes<Validator>
public Set<Annotation> getQualifiers()
getQualifiers
in interface BeanAttributes<Validator>
public Class<? extends Annotation> getScope()
getScope
in interface BeanAttributes<Validator>
public Set<Class<? extends Annotation>> getStereotypes()
getStereotypes
in interface BeanAttributes<Validator>
public Set<Type> getTypes()
getTypes
in interface BeanAttributes<Validator>
public boolean isAlternative()
isAlternative
in interface BeanAttributes<Validator>
public boolean isNullable()
isNullable
in interface Bean<Validator>
public Validator create(CreationalContext<Validator> ctx)
create
in interface Contextual<Validator>
public void destroy(Validator instance, CreationalContext<Validator> ctx)
destroy
in interface Contextual<Validator>
public String getId()
getId
in interface PassivationCapable
Copyright © 2007-2017 Red Hat, Inc. All Rights Reserved