org.apache.axis.registries
Class SimpleRegistry

java.lang.Object
  |
  +--org.apache.axis.registries.SimpleRegistry
All Implemented Interfaces:
HandlerRegistry

public class SimpleRegistry
extends java.lang.Object
implements HandlerRegistry

Author:
Doug Davis (dug@us.ibm.com), Glen Daniels (gdaniels@allaire.com)

Field Summary
protected  java.lang.String fileName
           
protected  java.util.Hashtable handlers
           
 
Constructor Summary
SimpleRegistry(java.lang.String fileName)
           
 
Method Summary
 void add(java.lang.String key, Handler handler)
          Add a new Handler to the registry.
 Handler find(java.lang.String key)
          Given a 'key' return the corresponding Handler
 void init()
          Init (ie.
 java.lang.String[] list()
          Return the list (in an array) of keys for the Handlers
 Handler remove(java.lang.String key)
          Remove a Handler (locate by key) from the registry - returns old value if it was there - or null if not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

protected java.lang.String fileName

handlers

protected java.util.Hashtable handlers
Constructor Detail

SimpleRegistry

public SimpleRegistry(java.lang.String fileName)
Method Detail

init

public void init()
Init (ie. load settings...)

add

public void add(java.lang.String key,
                Handler handler)
Add a new Handler to the registry.
Specified by:
add in interface HandlerRegistry

remove

public Handler remove(java.lang.String key)
Remove a Handler (locate by key) from the registry - returns old value if it was there - or null if not.
Specified by:
remove in interface HandlerRegistry

find

public Handler find(java.lang.String key)
Given a 'key' return the corresponding Handler
Specified by:
find in interface HandlerRegistry

list

public java.lang.String[] list()
Return the list (in an array) of keys for the Handlers
Specified by:
list in interface HandlerRegistry


Copyright © 2001 Apache XML Project. All Rights Reserved.