Package org.apache.bval.cdi
Class BValExtension
- java.lang.Object
-
- org.apache.bval.cdi.BValExtension
-
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.Extension
public class BValExtension extends Object implements jakarta.enterprise.inject.spi.Extension
CDIExtension
for Apache BVal setup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BValExtension.AnnotatedTypeFilter
Defines an item that can determine whether a givenAnnotatedType
will be processed by theBValExtension
for executable validation.static class
BValExtension.Releasable<T>
Represents an item that can be released from aCreationalContext
at some point in the future.
-
Constructor Summary
Constructors Constructor Description BValExtension()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBValBeans(jakarta.enterprise.inject.spi.AfterBeanDiscovery afterBeanDiscovery, jakarta.enterprise.inject.spi.BeanManager beanManager)
void
addBvalBinding(jakarta.enterprise.inject.spi.BeforeBeanDiscovery beforeBeanDiscovery, jakarta.enterprise.inject.spi.BeanManager beanManager)
void
afterStart(jakarta.enterprise.inject.spi.AfterDeploymentValidation clearEvent)
static jakarta.enterprise.inject.spi.BeanManager
getBeanManager()
Set<jakarta.validation.executable.ExecutableType>
getGlobalExecutableTypes()
static <T> BValExtension.Releasable<T>
inject(Class<T> clazz)
Request that an instance of the specified type be provided by the container.<A> void
processAnnotatedType(jakarta.enterprise.inject.spi.ProcessAnnotatedType<A> pat)
<A> void
processBean(jakarta.enterprise.inject.spi.ProcessBean<A> processBeanEvent)
static void
setAnnotatedTypeFilter(BValExtension.AnnotatedTypeFilter annotatedTypeFilter)
-
-
-
Method Detail
-
setAnnotatedTypeFilter
public static void setAnnotatedTypeFilter(BValExtension.AnnotatedTypeFilter annotatedTypeFilter)
-
getGlobalExecutableTypes
public Set<jakarta.validation.executable.ExecutableType> getGlobalExecutableTypes()
-
addBvalBinding
public void addBvalBinding(@Observes jakarta.enterprise.inject.spi.BeforeBeanDiscovery beforeBeanDiscovery, jakarta.enterprise.inject.spi.BeanManager beanManager)
-
processAnnotatedType
public <A> void processAnnotatedType(@Observes jakarta.enterprise.inject.spi.ProcessAnnotatedType<A> pat)
-
processBean
public <A> void processBean(@Observes jakarta.enterprise.inject.spi.ProcessBean<A> processBeanEvent)
-
addBValBeans
public void addBValBeans(@Observes jakarta.enterprise.inject.spi.AfterBeanDiscovery afterBeanDiscovery, jakarta.enterprise.inject.spi.BeanManager beanManager)
-
afterStart
public void afterStart(@Observes jakarta.enterprise.inject.spi.AfterDeploymentValidation clearEvent)
-
inject
public static <T> BValExtension.Releasable<T> inject(Class<T> clazz)
Request that an instance of the specified type be provided by the container.- Parameters:
clazz
-- Returns:
- the requested instance wrapped in a
BValExtension.Releasable
.
-
getBeanManager
public static jakarta.enterprise.inject.spi.BeanManager getBeanManager()
-
-