public abstract class AbstractResolvableCacheFactoryBean extends AbstractConfigurableCacheFactoryBean
GemFireCache
instance.Optional
,
Properties
,
GemFireCache
,
DistributedMember
,
DistributedSystem
,
AbstractConfigurableCacheFactoryBean
AbstractBasicCacheFactoryBean.CacheFactoryInitializer<T>, AbstractBasicCacheFactoryBean.PdxConfigurer<T>
DEFAULT_SINGLETON
Constructor and Description |
---|
AbstractResolvableCacheFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
configureFactory(java.lang.Object factory)
Configures the cache factory used to create the
GemFireCache . |
protected abstract <T extends org.apache.geode.cache.GemFireCache> |
createCache(java.lang.Object factory)
Creates a new
GemFireCache instance using the provided factory . |
protected abstract java.lang.Object |
createFactory(java.util.Properties gemfireProperties)
Constructs a new cache factory initialized with the given Apache Geode
Properties
used to construct, configure and initialize a new GemFireCache . |
protected org.apache.geode.cache.GemFireCache |
doGetObject()
Called if
AbstractBasicCacheFactoryBean.getCache() returns a null GemFireCache reference from AbstractBasicCacheFactoryBean.getObject() . |
protected org.apache.geode.cache.GemFireCache |
init()
Initializes a
GemFireCache . |
protected java.lang.Object |
initializeFactory(java.lang.Object factory)
Initializes the given
CacheFactory or ClientCacheFactory
with the configured AbstractBasicCacheFactoryBean.CacheFactoryInitializer . |
protected java.lang.Object |
postProcess(java.lang.Object factory)
Post process the cache factory used to create the
GemFireCache . |
protected <T extends org.apache.geode.cache.GemFireCache> |
postProcess(T cache)
Post process the
GemFireCache by loading any cache.xml file, applying custom settings
specified in SDG XML configuration metadata, and registering appropriate Transaction Listeners, Writer
and JVM Heap configuration. |
protected <T extends org.apache.geode.cache.GemFireCache> |
resolveCache()
Resolves a
GemFireCache by attempting to lookup an existing GemFireCache instance in the JVM,
first. |
afterPropertiesSet, destroy, getBeanFactoryLocator, getCacheXml, getOptionalBeanFactoryLocator, getOptionalCacheXml, getProperties, isCacheXmlPresent, isCacheXmlResolvableAsAFile, isUseBeanFactoryLocator, loadCacheXml, resolveProperties, setAndGetProperties, setBeanFactoryLocator, setCacheXml, setProperties, setUseBeanFactoryLocator
applyCacheConfigurers, close, configureHeapPercentages, configureOffHeapPercentages, configurePdx, doFetchCache, doGetObjectType, fetchCache, getCache, getCacheFactoryInitializer, getCopyOnRead, getCriticalHeapPercentage, getCriticalOffHeapPercentage, getEvictionHeapPercentage, getEvictionOffHeapPercentage, getObject, getObjectType, getOptionalCache, getPdxDiskStoreName, getPdxIgnoreUnreadFields, getPdxPersistent, getPdxReadSerialized, getPdxSerializer, getPhase, getTransactionListeners, getTransactionWriter, isClose, isCopyOnRead, isNotClosed, registerTransactionListeners, registerTransactionWriter, setCache, setCacheFactoryInitializer, setClose, setCopyOnRead, setCriticalHeapPercentage, setCriticalOffHeapPercentage, setEvictionHeapPercentage, setEvictionOffHeapPercentage, setPdxDiskStoreName, setPdxIgnoreUnreadFields, setPdxPersistent, setPdxReadSerialized, setPdxSerializer, setPhase, setTransactionListeners, setTransactionWriter, translateExceptionIfPossible
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
protected org.apache.geode.cache.GemFireCache doGetObject()
AbstractBasicCacheFactoryBean
AbstractBasicCacheFactoryBean.getCache()
returns a null GemFireCache
reference from AbstractBasicCacheFactoryBean.getObject()
.doGetObject
in class AbstractBasicCacheFactoryBean
GemFireCache
instance.GemFireCache
,
AbstractBasicCacheFactoryBean.getObject()
protected org.apache.geode.cache.GemFireCache init()
GemFireCache
.GemFireCache
.GemFireCache
,
AbstractBasicCacheFactoryBean.setCache(GemFireCache)
,
resolveCache()
,
AbstractBasicCacheFactoryBean.getCache()
protected <T extends org.apache.geode.cache.GemFireCache> T resolveCache()
GemFireCache
by attempting to lookup an existing GemFireCache
instance in the JVM,
first. If an existing GemFireCache
could not be found, then this method proceeds in attempting to
create a new GemFireCache
instance.T
- parameterized Class
type extending GemFireCache
.GemFireCache
.ClientCache
,
GemFireCache
,
Cache
,
AbstractBasicCacheFactoryBean.fetchCache()
,
AbstractConfigurableCacheFactoryBean.resolveProperties()
,
createFactory(java.util.Properties)
,
initializeFactory(Object)
,
configureFactory(Object)
,
postProcess(Object)
,
createCache(Object)
,
postProcess(GemFireCache)
@NonNull protected abstract java.lang.Object createFactory(@NonNull java.util.Properties gemfireProperties)
Properties
used to construct, configure and initialize a new GemFireCache
.gemfireProperties
- Properties
used by the cache factory to configure the GemFireCache
;
must not be nullProperties
.ClientCacheFactory
,
CacheFactory
,
Properties
,
AbstractConfigurableCacheFactoryBean.resolveProperties()
@NonNull protected java.lang.Object configureFactory(@NonNull java.lang.Object factory)
GemFireCache
.factory
- cache factory to configure; must not be null.createFactory(Properties)
protected java.lang.Object initializeFactory(java.lang.Object factory)
AbstractBasicCacheFactoryBean
CacheFactory
or ClientCacheFactory
with the configured AbstractBasicCacheFactoryBean.CacheFactoryInitializer
.initializeFactory
in class AbstractBasicCacheFactoryBean
factory
- CacheFactory
or ClientCacheFactory
to initialize.CacheFactory
or ClientCacheFactory
.org.springframework.data.gemfire.CacheFactoryBean.CacheFactoryInitializer#initialize(Object)
,
ClientCacheFactory
,
CacheFactory
,
AbstractBasicCacheFactoryBean.getCacheFactoryInitializer()
@NonNull protected java.lang.Object postProcess(@NonNull java.lang.Object factory)
GemFireCache
.factory
- cache factory to post process; must not be null.ClientCacheFactory
,
CacheFactory
,
createFactory(Properties)
@NonNull protected abstract <T extends org.apache.geode.cache.GemFireCache> T createCache(@NonNull java.lang.Object factory)
GemFireCache
instance using the provided factory
.T
- Subtype
of GemFireCache
.factory
- factory used to create the GemFireCache
.GemFireCache
created by the provided factory
.ClientCacheFactory.create()
,
CacheFactory.create()
,
GemFireCache
@NonNull protected <T extends org.apache.geode.cache.GemFireCache> T postProcess(@NonNull T cache)
GemFireCache
by loading any cache.xml file, applying custom settings
specified in SDG XML configuration metadata, and registering appropriate Transaction Listeners, Writer
and JVM Heap configuration.T
- parameterized Class
type extending GemFireCache
.cache
- GemFireCache
to post process.GemFireCache
.AbstractConfigurableCacheFactoryBean.loadCacheXml(GemFireCache)
,
GemFireCache.loadCacheXml(java.io.InputStream)
,
AbstractBasicCacheFactoryBean.configureHeapPercentages(org.apache.geode.cache.GemFireCache)
,
AbstractBasicCacheFactoryBean.configureOffHeapPercentages(GemFireCache)
,
AbstractBasicCacheFactoryBean.registerTransactionListeners(org.apache.geode.cache.GemFireCache)
,
AbstractBasicCacheFactoryBean.registerTransactionWriter(org.apache.geode.cache.GemFireCache)