org.springframework.data.gemfire.repository.support
Class GemfireRepositoryFactory

java.lang.Object
  extended by org.springframework.data.repository.core.support.RepositoryFactorySupport
      extended by org.springframework.data.gemfire.repository.support.GemfireRepositoryFactory

public class GemfireRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport

RepositoryFactorySupport implementation creating repository proxies for Gemfire.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.repository.core.support.RepositoryFactorySupport.QueryExecutorMethodInterceptor
 
Constructor Summary
GemfireRepositoryFactory(Iterable<com.gemstone.gemfire.cache.Region<?,?>> regions, org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> context)
          Creates a new GemfireRepositoryFactory.
 
Method Summary
<T,ID extends Serializable>
GemfireEntityInformation<T,ID>
getEntityInformation(Class<T> domainClass)
           
protected  org.springframework.data.repository.query.QueryLookupStrategy getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key)
           
protected  Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
           
protected  Object getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata)
           
 
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addQueryCreationListener, addRepositoryProxyPostProcessor, getQueryMethods, getRepository, getRepository, getRepositoryInformation, setNamedQueries, setQueryLookupStrategyKey, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GemfireRepositoryFactory

public GemfireRepositoryFactory(Iterable<com.gemstone.gemfire.cache.Region<?,?>> regions,
                                org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> context)
Creates a new GemfireRepositoryFactory.

Parameters:
regions - must not be null.
context -
Method Detail

getEntityInformation

public <T,ID extends Serializable> GemfireEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
Specified by:
getEntityInformation in class org.springframework.data.repository.core.support.RepositoryFactorySupport

getTargetRepository

protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryMetadata metadata)
Specified by:
getTargetRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupport

getRepositoryBaseClass

protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
Specified by:
getRepositoryBaseClass in class org.springframework.data.repository.core.support.RepositoryFactorySupport

getQueryLookupStrategy

protected org.springframework.data.repository.query.QueryLookupStrategy getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key)
Overrides:
getQueryLookupStrategy in class org.springframework.data.repository.core.support.RepositoryFactorySupport