Module spring.data.cassandra
Class CassandraRepositoryBean<T>
java.lang.Object
org.springframework.data.repository.cdi.CdiRepositoryBean<T>
org.springframework.data.cassandra.repository.cdi.CassandraRepositoryBean<T>
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<T>
,jakarta.enterprise.inject.spi.Bean<T>
,jakarta.enterprise.inject.spi.BeanAttributes<T>
,jakarta.enterprise.inject.spi.PassivationCapable
A bean which represents a Cassandra repository.
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionCassandraRepositoryBean
(jakarta.enterprise.inject.spi.Bean<CassandraOperations> operations, Set<Annotation> qualifiers, Class<T> repositoryType, jakarta.enterprise.inject.spi.BeanManager beanManager, CustomRepositoryImplementationDetector detector) Create a newCassandraRepositoryBean
. -
Method Summary
Methods inherited from class org.springframework.data.repository.cdi.CdiRepositoryBean
applyConfiguration, applyConfiguration, create, create, create, destroy, getBeanClass, getDependencyInstance, getDependencyInstance, getId, getInjectionPoints, getName, getQualifiers, getRepositoryFragments, getStereotypes, getTypes, initialize, isAlternative, isNullable, lookupConfiguration, toString
-
Constructor Details
-
CassandraRepositoryBean
public CassandraRepositoryBean(jakarta.enterprise.inject.spi.Bean<CassandraOperations> operations, Set<Annotation> qualifiers, Class<T> repositoryType, jakarta.enterprise.inject.spi.BeanManager beanManager, @Nullable CustomRepositoryImplementationDetector detector) Create a newCassandraRepositoryBean
.- Parameters:
operations
- must not be null.qualifiers
- must not be null.repositoryType
- must not be null.beanManager
- must not be null.detector
- optional detector for the customRepository
implementationsCustomRepositoryImplementationDetector
, can be null.
-
-
Method Details
-
create
protected T create(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext, Class<T> repositoryType) - Specified by:
create
in classCdiRepositoryBean<T>
-
getScope
- Specified by:
getScope
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
- Overrides:
getScope
in classCdiRepositoryBean<T>
-