Home | History | Annotate | Download | only in jmdns
      1 // Copyright 2003-2005 Arthur van Hoff, Rick Blair
      2 // Licensed under Apache License version 2.0
      3 // Original license LGPL
      4 
      5 package javax.jmdns;
      6 
      7 import java.util.EventListener;
      8 
      9 /**
     10  * Listener for service types.
     11  *
     12  * @author Arthur van Hoff, Werner Randelshofer
     13  */
     14 public interface ServiceTypeListener extends EventListener {
     15     /**
     16      * A new service type was discovered.
     17      *
     18      * @param event
     19      *            The service event providing the fully qualified type of the service.
     20      */
     21     void serviceTypeAdded(ServiceEvent event);
     22 
     23     /**
     24      * A new subtype for the service type was discovered.
     25      *
     26      * <pre>
     27      * &lt;sub&gt;._sub.&lt;app&gt;.&lt;protocol&gt;.&lt;servicedomain&gt;.&lt;parentdomain&gt;.
     28      * </pre>
     29      *
     30      * @param event
     31      *            The service event providing the fully qualified type of the service with subtype.
     32      * @since 3.2.0
     33      */
     34     void subTypeForServiceTypeAdded(ServiceEvent event);
     35 }
     36