Class ResourceRegistry
Registry class that contains mappings between various protocols and their associated resource handlers.
Inherited Members
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 |
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 |
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. |