public class SpringServerLauncherCacheProvider extends Object implements org.apache.geode.distributed.ServerLauncherCacheProvider
SpringServerLauncherCacheProvider
class overrides the default behavior of Pivotal GemFire's
ServerLauncher
to bootstrap the Pivotal GemFire cache using a Spring ApplicationContext
instead of Pivotal GemFire cache.xml inside a Pivotal GemFire Server JVM-based process.
This enables a Pivotal GemFire Cache Server's resources to be configured with SDG's XML namespace.
Unlike SpringContextBootstrappingInitializer
, this allows the configuration of the cache to specified
in the Spring context.
To use this cache provider, ensure that the SDG JAR file is on the classpath of the Pivotal GemFire server
and specify the --spring-xml-location option from the Gfsh command line or call
ServerLauncher.Builder.setSpringXmlLocation(String)
when launching the Pivotal GemFire server.ApplicationContext
,
SpringContextBootstrappingInitializer
,
ServerLauncherCacheProvider
Constructor and Description |
---|
SpringServerLauncherCacheProvider() |
Modifier and Type | Method and Description |
---|---|
org.apache.geode.cache.Cache |
createCache(Properties gemfireProperties,
org.apache.geode.distributed.ServerLauncher serverLauncher) |
public org.apache.geode.cache.Cache createCache(Properties gemfireProperties, org.apache.geode.distributed.ServerLauncher serverLauncher)
createCache
in interface org.apache.geode.distributed.ServerLauncherCacheProvider
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.