public abstract class CdiRepositoryExtensionSupport extends Object implements javax.enterprise.inject.spi.Extension
Extension implementations that create instances for Spring Data repositories.| Modifier | Constructor and Description |
|---|---|
protected |
CdiRepositoryExtensionSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected CustomRepositoryImplementationDetector |
getCustomImplementationDetector() |
protected CdiRepositoryContext |
getRepositoryContext() |
protected Iterable<Map.Entry<Class<?>,Set<Annotation>>> |
getRepositoryTypes()
Provides access to all repository types as well as their qualifiers.
|
protected <X> void |
processAnnotatedType(javax.enterprise.inject.spi.ProcessAnnotatedType<X> processAnnotatedType)
Implementation of a an observer which checks for Spring Data repository types and stores them in
repositoryTypes for later registration as bean type. |
protected void |
registerBean(CdiRepositoryBean<?> bean)
Registers the given
CdiRepositoryBean for further general treatment by the infrastructure. |
protected <X> void processAnnotatedType(@Observes
javax.enterprise.inject.spi.ProcessAnnotatedType<X> processAnnotatedType)
repositoryTypes for later registration as bean type.X - The type.processAnnotatedType - The annotated type as defined by CDI.protected Iterable<Map.Entry<Class<?>,Set<Annotation>>> getRepositoryTypes()
protected void registerBean(CdiRepositoryBean<?> bean)
CdiRepositoryBean for further general treatment by the infrastructure. In particular,
this will cause repositories to be instantiated eagerly if marked as such.bean - must not be null.afterDeploymentValidation(AfterDeploymentValidation, BeanManager)protected CustomRepositoryImplementationDetector getCustomImplementationDetector()
CustomRepositoryImplementationDetector to scan for the custom implementationprotected CdiRepositoryContext getRepositoryContext()
CdiRepositoryContext encapsulating the CDI-specific class loaders and fragment scanning.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.