Class 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 CDI Bean.
    • Constructor Detail

      • ValidatorBean

        public ValidatorBean​(Supplier<jakarta.validation.Validator> validator)
    • Method Detail

      • getTypes

        public Set<Type> getTypes()
        Specified by:
        getTypes in interface jakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
      • getQualifiers

        public Set<Annotation> getQualifiers()
        Specified by:
        getQualifiers in interface jakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
      • getScope

        public Class<? extends Annotation> getScope()
        Specified by:
        getScope in interface jakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
      • getName

        public String getName()
        Specified by:
        getName in interface jakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
      • getInjectionPoints

        public Set<jakarta.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
        Specified by:
        getInjectionPoints in interface jakarta.enterprise.inject.spi.Bean<jakarta.validation.Validator>
      • getBeanClass

        public Class<?> getBeanClass()
        Specified by:
        getBeanClass in interface jakarta.enterprise.inject.spi.Bean<jakarta.validation.Validator>
      • getStereotypes

        public Set<Class<? extends Annotation>> getStereotypes()
        Specified by:
        getStereotypes in interface jakarta.enterprise.inject.spi.BeanAttributes<jakarta.validation.Validator>
      • isAlternative

        public boolean isAlternative()
        Specified by:
        isAlternative in interface jakarta.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 interface jakarta.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 interface jakarta.enterprise.context.spi.Contextual<jakarta.validation.Validator>
      • getId

        public String getId()
        Specified by:
        getId in interface jakarta.enterprise.inject.spi.PassivationCapable