Spring Data Couchbase

org.springframework.data.couchbase.repository.support
Class CouchbaseRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>

java.lang.Object
  extended by org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
      extended by org.springframework.data.couchbase.repository.support.CouchbaseRepositoryFactoryBean<T,S,ID>
All Implemented Interfaces:
Aware, BeanClassLoaderAware, FactoryBean<T>, InitializingBean, RepositoryFactoryInformation<S,ID>

public class CouchbaseRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>
extends RepositoryFactoryBeanSupport<T,S,ID>

The factory bean to create repositories.

Author:
Michael Nitschinger

Constructor Summary
CouchbaseRepositoryFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
          Make sure that the template is set and not null.
protected  RepositoryFactorySupport createRepositoryFactory()
          Returns a factory instance.
 void setCouchbaseOperations(CouchbaseOperations operations)
          Set the template reference.
 
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setBeanClassLoader, setCustomImplementation, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CouchbaseRepositoryFactoryBean

public CouchbaseRepositoryFactoryBean()
Method Detail

setCouchbaseOperations

public void setCouchbaseOperations(CouchbaseOperations operations)
Set the template reference.

Parameters:
operations - the reference to the operations template.

createRepositoryFactory

protected RepositoryFactorySupport createRepositoryFactory()
Returns a factory instance.

Specified by:
createRepositoryFactory in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
Returns:
the factory instance.

afterPropertiesSet

public void afterPropertiesSet()
Make sure that the template is set and not null.

Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>

Spring Data Couchbase

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.