public class JCacheExtendNamespace extends AbstractNamespaceHandler
NamespaceHandler
to enable and enhance Coherence-based
configurations to be used with the Coherence-based JCache Extend implementationConstructor and Description |
---|
JCacheExtendNamespace() |
Modifier and Type | Method and Description |
---|---|
void |
onEndNamespace(ProcessingContext processingContext,
XmlElement xmlElement,
String s,
URI uri)
{@code
|
getAttributeProcessor, getAttributeProcessor, getDocumentPreprocessor, getElementProcessor, getElementProcessor, onStartNamespace, onUnknownAttribute, onUnknownElement, registerAttributeType, registerElementType, registerProcessor, registerProcessor, registerProcessor, setDocumentPreprocessor
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>
onEndNamespace
in interface NamespaceHandler
onEndNamespace
in class AbstractNamespaceHandler
processingContext
- the document ProcessingContext
in which the xml namespace was encounteredxmlElement
- the XmlElement
in which the xml namespace was encountereds
- the prefix of the declared xml namespaceuri
- the URI
of the declared xml namespace