Interface BindListener<T>

  • Type Parameters:
    T - the type of object stored in the namespace

    public interface BindListener<T>
    Listener for detecting the assignment of names to objects in a namespace. For namespaces with renaming collision policies, this is an easy way to discover the name chosen by the policy. Registering a BindListener to a NamespaceBuilder will cause it to be invoked on every entry added.
    • Method Detail

      • boundName

        void boundName​(T entry,
                       String name)
        Signals the association of the specified object and name. A NamespaceBuilder will call this for every successfully added namespace entry.
        Parameters:
        entry - the object added to the namespace
        name - the name associated with the object. This may not be the same as requested by the add, depending on collision policy.