#1 ServiceListener with standard Java idiom for listeners

closed
nobody
None
5
2005-10-23
2003-12-31
No

It would be nice, if the ServiceListener interface would follow
the standard Java idiom for Listener interfaces. This would
greatly reduce the burden for new developers to figure out
how things work with JmDNS.

Here's an example for a changed ServiceListener interface:

public interface ServiceListener extends java.util.Listener {
void serviceAdded(ServiceEvent event);
void serviceRemoved(ServiceEvent event);
void serviceResolved(ServiceEvent event);
}

Where as ServiceEvent is a subclass of java.util.EventObject.

Discussion

  • Werner Randelshofer

    Logged In: YES
    user_id=940971

    Oops this is a feature request, not a support request. I am going to
    add it to the other list.

     
  • Rick Blair

    Rick Blair - 2005-10-23
    • status: open --> closed