org.apache.axis.registries
Class SupplierRegistry
java.lang.Object
|
+--org.apache.axis.registries.SupplierRegistry
- All Implemented Interfaces:
- HandlerRegistry
- public class SupplierRegistry
- extends java.lang.Object
- implements HandlerRegistry
A SupplierRegistry
contains Suppliers, which are used
by the find() method to obtain actual Handler references. This
allows creational dynamics to be configured on a per-handler basis.
- Author:
- Glen Daniels (gdaniels@allaire.com), Doug Davis (dug@us.ibm.com)
Field Summary |
protected java.util.Hashtable |
suppliers
|
Method Summary |
void |
add(java.lang.String key,
Handler handler)
Add a new Handler to the registry. |
void |
add(java.lang.String key,
Supplier supplier)
|
Handler |
find(java.lang.String key)
Given a 'key' return the corresponding Handler |
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 |
suppliers
protected java.util.Hashtable suppliers
SupplierRegistry
public SupplierRegistry()
add
public void add(java.lang.String key,
Handler handler)
- Add a new Handler to the registry.
- Specified by:
add
in interface HandlerRegistry
add
public void add(java.lang.String key,
Supplier supplier)
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.