<Insert Picture Here> Coherence 12.1.2 Configuration Enhancements Part 3: Creating Custom Configuration Namespaces Brian Oliver Senior Consulting Member of Staff Cloud Application Foundation - Oracle Coherence Oracle Fusion Middleware 12c Cloud Application Foundation Coherence 12.1.2
Watch on YouTube: http://www.youtube.com/watch?v=tDbtpn4bFx4
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
<Insert Picture Here>
Coherence 12.1.2 Configuration EnhancementsPart 3: Creating Custom Configuration NamespacesBrian OliverSenior Consulting Member of StaffCloud Application Foundation - Oracle Coherence
Oracle Fusion Middleware 12c Cloud Application Foundation
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
The Hello World Example<cache-config xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance” xmlns:helloworld=“class://HelloWorldNamespaceHandler” xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config coherence-cache-config.xsd">
The Hello World Example<cache-config xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance” xmlns:helloworld=“class://HelloWorldNamespaceHandler” xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config coherence-cache-config.xsd">
/** * A Simple Hello World NamespaceHandler. * * @author Brian Oliver */public class HelloWorldNamespaceHandler extends AbstractNamespaceHandler{ @Override public void onStartNamespace(ProcessingContext context, XmlElement element, String prefix, URI uri) { super.onStartNamespace(context, element, prefix, uri);
System.out.println("Hello World Namespace Started"); }}
• How to think about the Cache Configuration XML…– When “processed” Xml Content “produces” a specific type of instance– The Framework processes Xml documents to produce “configurations”
– For Example:<cache-config> produces a CacheConfig
• The com.tangosol.coherence.config package– Defines the runtime configuration model for Coherence 12.1.2– Defines the Coherence Cache Configuration Namespace Handler– Defines the Coherence Xml Element and Attribute Processors– Defines Classes produced by the *Processors
• The com.tangosol.config package– Defines the Configuration Framework for Coherence 12.1.2– The core framework that processes Xml Documents
• Coherence 12.1.2 introduces Custom Namespace Configurations– Allows integration of third-party frameworks directly into Coherence– Allows independent development of extensions– Allows customization of Coherence
• Developing a Cron service using Custom Namespaces– Leverage the Coherence Configuration Framework– Leverage the Coherence Configuration Model– Leverage the Coherence Configuration Lifecycle
Join the Coherence Community
http://coherence.oracle.com
@OracleCoherence
/OracleCoherence
blogs.oracle.com/OracleCoherence
Group: Oracle Coherence Users
/OracleCoherence
coherence.oracle.com/display/CSIGCoherence Special Interest Group
The proceeding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
<Insert Picture Here>
Coherence 12.1.2 Configuration EnhancementsPart 3: Creating Custom Configuration NamespacesBrian OliverSenior Consulting Member of StaffCloud Application Foundation - Oracle Coherence
Oracle Fusion Middleware 12c Cloud Application Foundation