Interface NamingContext.Listener

  • Enclosing class:
    NamingContext

    public static interface NamingContext.Listener
    Naming Context Listener.
    • Method Detail

      • bind

        javax.naming.Binding bind​(NamingContext ctx,
                                  javax.naming.Binding binding)
        Called by NamingContext.addBinding(Name, Object) when adding a binding.
        Parameters:
        ctx - The context to add to.
        binding - The binding to add.
        Returns:
        The binding to bind, or null if the binding should be ignored.
      • unbind

        void unbind​(NamingContext ctx,
                    javax.naming.Binding binding)
        Parameters:
        ctx - The context to unbind from
        binding - The binding that was unbound.