View Javadoc

1   /*
2    * Copyright 2001-2005 The Apache Software Foundation.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package net.sf.nxqd.event;
17  
18  import java.util.logging.Level;
19  import java.util.logging.Logger;
20  import java.util.ArrayList;
21  import java.util.List;
22  import java.util.Map;
23  
24  import net.sf.nxqd.common.NxqdUtils;
25  
26  /**
27   *
28   * @author <a href="mailto:webhiker@sourceforge.net">webhiker</a>
29   * @version 1.0
30   */
31  public interface NxqdContainerEventListener extends NxqdEventListener {
32  
33      /**
34       * The <code>handleResourceCreated</code> method is called when a container
35       * reports a resource has been created.
36       *
37       * @param container a <code>String</code> the name of the container containing the
38       * resource which was created
39       * @param id a <code>String</code> value indicating the resource identifier.
40       */
41      public void handleResourceCreated(String container, String id);
42  
43      /**
44       * The <code>handleResourceDeleted</code> method is called when a container
45       * reports a resource has been deleted.
46       *
47       * @param container a <code>String</code> the name of the container where the
48       * resource was deleted
49       * @param id a <code>String</code> value indicating the resource identifier.
50       */
51      public void handleResourceDeleted(String container, String id);
52  
53      /**
54       * The <code>handleResourceUpdated</code> method is called when a container
55       * reports a resource has been updated.
56       *
57       * @param container a <code>String</code> the name of the container containing the
58       * resource which was updated
59       * @param id a <code>String</code> value indicating the resource identifier.
60       */
61      public void handleResourceUpdated(String container, String id);
62  
63  }
64