Class JCacheExtendNamespace

java.lang.Object
com.tangosol.config.xml.AbstractNamespaceHandler
com.tangosol.coherence.jcache.JCacheExtendNamespace
All Implemented Interfaces:
NamespaceHandler

public class JCacheExtendNamespace extends AbstractNamespaceHandler
A NamespaceHandler to enable and enhance Coherence-based configurations to be used with the Coherence-based JCache Extend implementation
Since:
Coherence 12.2.1
Author:
bo 2013.11.06, jf 2014.06.12
  • Constructor Details

    • JCacheExtendNamespace

      public JCacheExtendNamespace()
  • Method Details

    • onEndNamespace

      public void onEndNamespace(ProcessingContext processingContext, XmlElement xmlElement, String s, URI uri)
       
          <!-- Generated by JCacheExtendNamespace -->
          <caching-scheme-mapping>
              <cache-mapping>
                  <cache-name>jcache-partitioned-*</cache-name>
                   <scheme-name>jcache-extend-tcp</scheme-name>
              </cache-mapping>
               <cache-mapping>
                   <cache-name>jcache-configurations</cache-name>
                   <scheme-name>jcache-extend-tcp</scheme-name>
              </cache-mapping>
          </caching-scheme-mapping>
          <caching-schemes>
              <remote-cache-scheme>
                   <scheme-name>jcache-extend-tcp</scheme-name>
                   <!-- TODO: scope-name probably needed within container context. -->
                   <!--  <scope-name>jcache-extend</scope-name>  -->
                   <service-name>JCacheTCPProxyService</service-name>
                   <proxy-service-name>TCPProxyService</proxy-service-name>
                   <initiator-config>
                       <tcp-initiator>
                           <name-service-addresses>
                               <socket-address>
                                   <address system-property="coherence.remote.address">127.0.0.1</address>
                                   <port system-property="coherence.clusterport">7574</port>
                               </socket-address>
                           </name-service-addresses>
                       </tcp-initiator>
                   </initiator-config>
              </remote-cache-scheme>
          </caching-schemes>
       
       
      Specified by:
      onEndNamespace in interface NamespaceHandler
      Overrides:
      onEndNamespace in class AbstractNamespaceHandler
      Parameters:
      processingContext - the document ProcessingContext in which the xml namespace was encountered
      xmlElement - the XmlElement in which the xml namespace was encountered
      s - the prefix of the declared xml namespace
      uri - the URI of the declared xml namespace