Package org.apache.bval.cdi
Class BValExtension
- java.lang.Object
-
- org.apache.bval.cdi.BValExtension
-
- All Implemented Interfaces:
javax.enterprise.inject.spi.Extension
public class BValExtension extends Object implements javax.enterprise.inject.spi.Extension
CDIExtensionfor Apache BVal setup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBValExtension.AnnotatedTypeFilterDefines an item that can determine whether a givenAnnotatedTypewill be processed by theBValExtensionfor executable validation.static classBValExtension.Releasable<T>Represents an item that can be released from aCreationalContextat 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 voidaddBValBeans(javax.enterprise.inject.spi.AfterBeanDiscovery afterBeanDiscovery, javax.enterprise.inject.spi.BeanManager beanManager)voidaddBvalBinding(javax.enterprise.inject.spi.BeforeBeanDiscovery beforeBeanDiscovery, javax.enterprise.inject.spi.BeanManager beanManager)voidafterStart(javax.enterprise.inject.spi.AfterDeploymentValidation clearEvent)static javax.enterprise.inject.spi.BeanManagergetBeanManager()Set<javax.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> voidprocessAnnotatedType(javax.enterprise.inject.spi.ProcessAnnotatedType<A> pat)<A> voidprocessBean(javax.enterprise.inject.spi.ProcessBean<A> processBeanEvent)static voidsetAnnotatedTypeFilter(BValExtension.AnnotatedTypeFilter annotatedTypeFilter)
-
-
-
Method Detail
-
setAnnotatedTypeFilter
public static void setAnnotatedTypeFilter(BValExtension.AnnotatedTypeFilter annotatedTypeFilter)
-
getGlobalExecutableTypes
public Set<javax.validation.executable.ExecutableType> getGlobalExecutableTypes()
-
addBvalBinding
public void addBvalBinding(@Observes javax.enterprise.inject.spi.BeforeBeanDiscovery beforeBeanDiscovery, javax.enterprise.inject.spi.BeanManager beanManager)
-
processAnnotatedType
public <A> void processAnnotatedType(@Observes javax.enterprise.inject.spi.ProcessAnnotatedType<A> pat)
-
processBean
public <A> void processBean(@Observes javax.enterprise.inject.spi.ProcessBean<A> processBeanEvent)
-
addBValBeans
public void addBValBeans(@Observes javax.enterprise.inject.spi.AfterBeanDiscovery afterBeanDiscovery, javax.enterprise.inject.spi.BeanManager beanManager)
-
afterStart
public void afterStart(@Observes javax.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 javax.enterprise.inject.spi.BeanManager getBeanManager()
-
-