Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The above example shows you how you can retrieve/manipuate those elements (e.g. regions, cache servers, gateway receivers, indecies etc) that are defined in CacheConfig (cache.xsd) itself. But cache.xsd allows module developers to put elements of different namespaces inside <cache> and <region> elements, as shown by these methods. Developers can access those elements from the CacheConfig object retrieved by the getCacheConfig call in the public interface:

No Format
InList<CacheElement> CacheConfig:customElements public= List<CacheElement> cacheConfig.getCustomCacheElements();
InList<CacheElement> RegionConfig:customRegionElements public List<CacheElement> = cacheConfig.getRegions().get(0).getCustomRegionElements();

...