Used in: caching-schemes, local-scheme, distributed-scheme, replicated-scheme, optimistic-scheme, near-scheme, versioned-near-scheme, overflow-scheme, read-write-backing-map-scheme, versioned-backing-map-scheme, cachestore-scheme, listener
Class schemes provide a mechanism for instantiating an arbitrary Java class for use by other schemes. The scheme which contains this element will dictate what class or interface(s) must be extended.
The following table describes the elements you can define within the class-scheme element.
Element | Required/Optional | Description |
---|---|---|
<scheme-name> | Optional | Specifies the scheme's name. The name must be unique within a configuration file. |
<scheme-ref> | Optional | Specifies the name of another scheme to inherit from. |
<class-name> | Required | Contains a fully specified Java class name to instantiate.
This class must extend an appropriate implementation class as dictated by the containing scheme and must declare the exact same set of public constructors as the superclass. |
<init-params> | Optional | Specifies initialization parameters which are accessible by implementations which support the com.tangosol.run.xml.XmlConfigurable interface. |