Class SpannerRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,I>,S,I>
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,I>
com.google.cloud.spring.data.spanner.repository.support.SpannerRepositoryFactoryBean<T,S,I>
- Type Parameters:
S- the entity type of the repositoryI- the id type of the entityT- the repository type
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.FactoryBean<T>,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationEventPublisherAware,org.springframework.context.EnvironmentAware,org.springframework.data.repository.core.support.RepositoryFactoryInformation<S,I>
@ImportRuntimeHints(SpannerRepositoryRuntimeHints.class)
public class SpannerRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,I>,S,I>
extends org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,I>
implements org.springframework.context.ApplicationContextAware
Spanner Repository Factory Bean used to create factories that ultimately create repository
implementations.
- Since:
- 1.1
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.FragmentCreationContext, org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.RepositoryFragmentsFunction -
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.data.repository.core.support.RepositoryFactorySupportvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetSpannerMappingContext(SpannerMappingContext mappingContext) voidsetSpannerTemplate(SpannerTemplate spannerTemplate) Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
addRepositoryFactoryCustomizer, afterPropertiesSet, createDefaultEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryFragmentsContributor, getRepositoryInformation, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEnvironment, setEvaluationContextProvider, setExposeMetadata, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments, setRepositoryFragmentsFunctionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Method Details
-
setSpannerTemplate
-
setSpannerMappingContext
-
createRepositoryFactory
protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-