org.springframework.data.repository.cdi
Class CdiRepositoryExtensionSupport
java.lang.Object
org.springframework.data.repository.cdi.CdiRepositoryExtensionSupport
- All Implemented Interfaces:
- javax.enterprise.inject.spi.Extension
public abstract class CdiRepositoryExtensionSupport
- extends java.lang.Object
- implements javax.enterprise.inject.spi.Extension
Base class for Extension
implementations that create instances for Spring Data repositories.
- Author:
- Dirk Mahler, Oliver Gierke
Method Summary |
protected java.lang.Iterable<java.util.Map.Entry<java.lang.Class<?>,java.util.Set<java.lang.annotation.Annotation>>> |
getRepositoryTypes()
Provides access to all repository types as well as their qualifiers. |
protected
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CdiRepositoryExtensionSupport
public CdiRepositoryExtensionSupport()
processAnnotatedType
protected <X> void processAnnotatedType(@Observes
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.
- Type Parameters:
X
- The type.- Parameters:
processAnnotatedType
- The annotated type as defined by CDI.
getRepositoryTypes
protected java.lang.Iterable<java.util.Map.Entry<java.lang.Class<?>,java.util.Set<java.lang.annotation.Annotation>>> getRepositoryTypes()
- Provides access to all repository types as well as their qualifiers.
- Returns:
Copyright © 2012. All Rights Reserved.