If you implement NameContextBindingListener
, you might also wish to implement atg.naming.NameContextElement
. This is a simple extension to the NameContextBindingListener
interface that exposes the component’s name
and nameContext
as properties:
public NameContext getNameContext () { return nameContext; }
public String getName () { return name; }
Exposing these properties gives Nucleus some help when Nucleus is traversing the namespace looking for components. These properties also show up in the Component Browser, which is always a help to the administrator. In general, it is a good idea to implement NameContextElement
if you already implemented NameContextBindingListener
.