Class SpringServerLauncherCacheProvider

java.lang.Object
org.springframework.data.gemfire.support.SpringServerLauncherCacheProvider
All Implemented Interfaces:
org.apache.geode.distributed.ServerLauncherCacheProvider

public class SpringServerLauncherCacheProvider extends Object implements org.apache.geode.distributed.ServerLauncherCacheProvider
The SpringServerLauncherCacheProvider class overrides the default behavior of GemFire's ServerLauncher to bootstrap the GemFire cache using a Spring ApplicationContext instead of GemFire cache.xml inside a GemFire Server JVM-based process. This enables a GemFire Cache Server's resources to be configured with Spring Data GemFire'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 Spring Data GemFire JAR file is on the classpath of the GemFire server and specify the --spring-xml-location option from the Gfsh command line or call ServerLauncher.Builder.setSpringXmlLocation(String) when launching the GemFire server.
Since:
1.7.0
See Also:
  • Constructor Details

    • SpringServerLauncherCacheProvider

      public SpringServerLauncherCacheProvider()
  • Method Details

    • createCache

      public org.apache.geode.cache.Cache createCache(Properties gemfireProperties, org.apache.geode.distributed.ServerLauncher serverLauncher)
      Specified by:
      createCache in interface org.apache.geode.distributed.ServerLauncherCacheProvider