NameContext

Components that implement atg.naming.NameContext are recognized by Nucleus as containers of other components. This means that Nucleus can traverse through these components when it is resolving names. It also means that the Component Browser allows the administrator to walk through the children of that component, in the same way that a web browser allows a user to walk through the files in a directory.

The NameContext interface resembles java.util.Dictionary in that it has methods for getting, putting, removing, and listing elements. One possible implementation of NameContext is to use a Hashtable:

Notice how the putElement and removeElement methods do nothing. Also notice the use of inner classes to implement the methods that return Enumerations. This is a common technique for satisfying these types of interfaces.

Remember that NameContext extends NameContextElement, so your implementations of NameContext must also implement all the methods for NameContextElement.