Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/strangeberry/rendezvous/ServiceListener.java


1   // Copyright (C) 2002  Strangeberry Inc.
2   // @(#)ServiceListener.java, 1.3, 11/29/2002
3   //
4   // This library is free software; you can redistribute it and/or
5   // modify it under the terms of the GNU Lesser General Public
6   // License as published by the Free Software Foundation; either
7   // version 2.1 of the License, or (at your option) any later version.
8   // 
9   // This library is distributed in the hope that it will be useful,
10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  // Lesser General Public License for more details.
13  // 
14  // You should have received a copy of the GNU Lesser General Public
15  // License along with this library; if not, write to the Free Software
16  // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  
18  package com.strangeberry.rendezvous;
19  
20  /**
21   * Listener for service updates.
22   *
23   * @author  Arthur van Hoff
24   * @version   1.3, 11/29/2002
25   */
26  public interface ServiceListener {
27      /**
28       * A service is added.
29       * @param type the fully qualified type of the service
30       * @param name the fully qualified name of the service
31       */
32      void addService(Rendezvous rendezvous, String type, String name);
33  
34      /**
35       * A service is removed.
36       * @param type the fully qualified type of the service
37       * @param name the fully qualified name of the service
38       */
39      void removeService(Rendezvous rendezvous, String type, String name);
40  }