com.ibm.dse.clientserver
Class HandlerRegistry

java.lang.Object
  |
  +--com.ibm.dse.clientserver.HandlerRegistry

public class HandlerRegistry
extends java.lang.Object

This is a singleton class that will be used to register and cache all channel handlers


Field Summary
protected static java.lang.Object lockObject
          Static object used for synchronizing the access to the "instance" attribute in the getUniqueHTMLInstance method.
 
Constructor Summary
HandlerRegistry()
          HandlerRegistry constructor.
 
Method Summary
 ChannelHandler getChannelHandler(java.lang.String key)
          Returns the value of the ChannelHandler from the channelHandlers property for a given key
static HandlerRegistry getInstance()
          Returns the value of the handlerRegistry property.
static void resetInstance()
          Set the value of the handlerRegistry property to null.
 void setChannelHandler(java.lang.String key, java.lang.Object value)
          Adds a ChannelHandler class to the channelHandlers property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lockObject

protected static java.lang.Object lockObject
Static object used for synchronizing the access to the "instance" attribute in the getUniqueHTMLInstance method.
Constructor Detail

HandlerRegistry

public HandlerRegistry()
HandlerRegistry constructor.
Method Detail

getChannelHandler

public ChannelHandler getChannelHandler(java.lang.String key)
Returns the value of the ChannelHandler from the channelHandlers property for a given key
Returns:
ChannelHandler - The current value of channelHandlers.

getInstance

public static HandlerRegistry getInstance()
Returns the value of the handlerRegistry property.
Returns:
HandlerRegistry - The current value of handlerRegistry.

resetInstance

public static void resetInstance()
Set the value of the handlerRegistry property to null.

setChannelHandler

public void setChannelHandler(java.lang.String key,
                              java.lang.Object value)
Adds a ChannelHandler class to the channelHandlers property.
Parameters:
key - java.lang.String
value - java.lang.Object