Package org.apache.bval.cdi
Class ValidatorBean
- java.lang.Object
-
- org.apache.bval.cdi.ValidatorBean
-
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<jakarta.validation.Validator>
,jakarta.enterprise.inject.spi.Bean<jakarta.validation.Validator>
,jakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
,jakarta.enterprise.inject.spi.PassivationCapable
public class ValidatorBean extends Object implements jakarta.enterprise.inject.spi.Bean<jakarta.validation.Validator>, jakarta.enterprise.inject.spi.PassivationCapable
Validator
CDIBean
.
-
-
Constructor Summary
Constructors Constructor Description ValidatorBean(Supplier<jakarta.validation.Validator> validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.validation.Validator
create(jakarta.enterprise.context.spi.CreationalContext<jakarta.validation.Validator> context)
void
destroy(jakarta.validation.Validator instance, jakarta.enterprise.context.spi.CreationalContext<jakarta.validation.Validator> context)
Class<?>
getBeanClass()
String
getId()
Set<jakarta.enterprise.inject.spi.InjectionPoint>
getInjectionPoints()
String
getName()
Set<Annotation>
getQualifiers()
Class<? extends Annotation>
getScope()
Set<Class<? extends Annotation>>
getStereotypes()
Set<Type>
getTypes()
boolean
isAlternative()
-
-
-
Constructor Detail
-
ValidatorBean
public ValidatorBean(Supplier<jakarta.validation.Validator> validator)
-
-
Method Detail
-
getTypes
public Set<Type> getTypes()
- Specified by:
getTypes
in interfacejakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
-
getQualifiers
public Set<Annotation> getQualifiers()
- Specified by:
getQualifiers
in interfacejakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
-
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScope
in interfacejakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
-
getName
public String getName()
- Specified by:
getName
in interfacejakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
-
getInjectionPoints
public Set<jakarta.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
- Specified by:
getInjectionPoints
in interfacejakarta.enterprise.inject.spi.Bean<jakarta.validation.Validator>
-
getBeanClass
public Class<?> getBeanClass()
- Specified by:
getBeanClass
in interfacejakarta.enterprise.inject.spi.Bean<jakarta.validation.Validator>
-
getStereotypes
public Set<Class<? extends Annotation>> getStereotypes()
- Specified by:
getStereotypes
in interfacejakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
-
isAlternative
public boolean isAlternative()
- Specified by:
isAlternative
in interfacejakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
-
create
public jakarta.validation.Validator create(jakarta.enterprise.context.spi.CreationalContext<jakarta.validation.Validator> context)
- Specified by:
create
in interfacejakarta.enterprise.context.spi.Contextual<jakarta.validation.Validator>
-
destroy
public void destroy(jakarta.validation.Validator instance, jakarta.enterprise.context.spi.CreationalContext<jakarta.validation.Validator> context)
- Specified by:
destroy
in interfacejakarta.enterprise.context.spi.Contextual<jakarta.validation.Validator>
-
getId
public String getId()
- Specified by:
getId
in interfacejakarta.enterprise.inject.spi.PassivationCapable
-
-