Package com.tangosol.coherence.jcache
Class JCacheExtendNamespace
- java.lang.Object
-
- com.tangosol.config.xml.AbstractNamespaceHandler
-
- com.tangosol.coherence.jcache.JCacheExtendNamespace
-
- All Implemented Interfaces:
NamespaceHandler
public class JCacheExtendNamespace extends AbstractNamespaceHandler
ANamespaceHandler
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 Summary
Constructors Constructor Description JCacheExtendNamespace()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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>
-
Methods inherited from class com.tangosol.config.xml.AbstractNamespaceHandler
getAttributeProcessor, getAttributeProcessor, getDocumentPreprocessor, getElementProcessor, getElementProcessor, onStartNamespace, onUnknownAttribute, onUnknownElement, registerAttributeType, registerElementType, registerProcessor, registerProcessor, registerProcessor, setDocumentPreprocessor
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.config.xml.NamespaceHandler
getOverrideProcessor
-
-
-
-
Method Detail
-
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 interfaceNamespaceHandler
- Overrides:
onEndNamespace
in classAbstractNamespaceHandler
- Parameters:
processingContext
- the documentProcessingContext
in which the xml namespace was encounteredxmlElement
- theXmlElement
in which the xml namespace was encountereds
- the prefix of the declared xml namespaceuri
- theURI
of the declared xml namespace
-
-