01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.naming.event;
19:
20: /**
21: * The listener interface to get notification of namespace change events.
22: * <p>
23: * These events include naming events with event type <code>OBJECT_ADDED</code>,
24: * <code>OBJECT_RENAMED</code>, or <code>OBJECT_REMOVED</code>. A service
25: * provider will call one of these interface methods to notify a listener of an
26: * event, passing in a <code>NamingEvent</code> parameter. This
27: * <code>NamingEvent</code> provides methods to get various bits information
28: * about the event.
29: * </p>
30: */
31: public interface NamespaceChangeListener extends NamingListener {
32:
33: /**
34: * Called by a service provider when there is a new binding.
35: *
36: * @param namingevent
37: * the event notification
38: */
39: void objectAdded(NamingEvent namingevent);
40:
41: /**
42: * Called by a service provider when a binding is removed.
43: *
44: * @param namingevent
45: * the event notification
46: */
47: void objectRemoved(NamingEvent namingevent);
48:
49: /**
50: * Called by a service provider when a binding is renamed.
51: *
52: * @param namingevent
53: * the event notification
54: */
55: void objectRenamed(NamingEvent namingevent);
56:
57: }
|