Show / Hide Table of Contents

Class ResourceRegistry

Registry class that contains mappings between various protocols and their associated resource handlers.

Inheritance
object
ResourceRegistry
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Tangosol.IO.Resources
Assembly: Coherence.dll
Syntax
public class ResourceRegistry
Remarks

The following protocols and resource handlers are registered by default:

Methods

GetHandler(string)

Returns resource handler for the protocol name specified.

Declaration
public static ConstructorInfo GetHandler(string protocolName)
Parameters
Type Name Description
string protocolName

Protocol name of the resource.

Returns
Type Description
ConstructorInfo

ConstructorInfo object that is handler constructor for the specified protocol name.

Exceptions
Type Condition
ArgumentNullException

If protocolName is null.

IsHandlerRegistered(string)

Determines whether a handler is registered for the specified protocol.

Declaration
public static bool IsHandlerRegistered(string protocolName)
Parameters
Type Name Description
string protocolName

Protocol name.

Returns
Type Description
bool

true if a handler is registered for the specified protocol, otherwise false.

Exceptions
Type Condition
ArgumentNullException

If protocolName is null.

RegisterHandler(string, Type)

Registers resource handler for a specified protocol.

Declaration
public static void RegisterHandler(string protocolName, Type handlerType)
Parameters
Type Name Description
string protocolName

The name of the protocol to register handler for.

Type handlerType

Resource handler type to use for the specified protocol.

Exceptions
Type Condition
ArgumentException

If the specified type does not have a constructor that accepts a single argument of string type.

In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.