IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.clientserver
Class HandlerRegistry

java.lang.Object
  extended bycom.ibm.btt.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
(package private)  Hashtable channelHandlers
          Create the hash tables to cache the channel sessions
(package private) static HandlerRegistry handlerRegistry
          the handler registry to be used by the singleton patter
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

handlerRegistry

static HandlerRegistry handlerRegistry
the handler registry to be used by the singleton patter


channelHandlers

Hashtable channelHandlers
Create the hash tables to cache the channel sessions


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

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005