com.ibm.wsdl.util

Class ObjectRegistry


public class ObjectRegistry
extends java.lang.Object

The ObjectRegistry is used to do name-to-object reference lookups. If an ObjectRegistry is passed as a constructor argument, then this ObjectRegistry will be a cascading registry: when a lookup is invoked, it will first look in its own table for a name, and if it's not there, it will cascade to the parent ObjectRegistry. All registration is always local. [??]
Authors:
Sanjiva Weerawarana
Matthew J. Duftler

Constructor Summary

ObjectRegistry()
ObjectRegistry(ObjectRegistry parent)

Method Summary

Object
lookup(String name)
void
register(String name, Object obj)
void
unregister(String name)

Constructor Details

ObjectRegistry

public ObjectRegistry()

ObjectRegistry

public ObjectRegistry(ObjectRegistry parent)

Method Details

lookup

public Object lookup(String name)
            throws IllegalArgumentException

register

public void register(String name,
                     Object obj)

unregister

public void unregister(String name)