Click or drag to resize

XmlHelperCreateInstance Method (IXmlElement, XmlHelperIParameterResolver, Type)

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Create an instance of the class configured using an IXmlElement of the following structure:
            <!ELEMENT ... (class-name | (class-factory-name, method-name),
            init-params?>
            <!ELEMENT init-params (init-param*)>
            <!ELEMENT init-param ((param-name | param-type), param-value,
            description?)>
            
As of Coherence 12.1.2 the supplied element may also be of the following format:
            <!ELEMENT instance>
            
where the "instance" format is the same as above.

Namespace:  Tangosol.Run.Xml
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public static Object CreateInstance(
	IXmlElement xmlClass,
	XmlHelperIParameterResolver resolver,
	Type typeAssignable
)

Parameters

xmlClass
Type: Tangosol.Run.XmlIXmlElement
The XML element that contains the instantiation info.
resolver
Type: Tangosol.Run.XmlXmlHelperIParameterResolver
An XmlHelperIParameterResolver to resolve "{macro}" values (optional).
typeAssignable
Type: SystemType
if non-null, this method will validate that the Type is assignable from the loaded Type

Return Value

Type: Object
An object intantiated or obtained based on the class configuration.
See Also