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 object change events.
22: * <p>
23: * These object change events include naming events with type
24: * <code>OBJECT_CHANGED</code>. These events could mean that a bound object
25: * has had its attributes changed somehow, or has been replaced altogether. The
26: * listener can work out what has changed by querying the
27: * <code>NamingEvent</code> object that is passed to the
28: * <code>objectChanged</code> notification method.
29: */
30: public interface ObjectChangeListener extends NamingListener {
31:
32: /**
33: * This method is called by a service provider to notify a listener that a
34: * bound object has changed in some way.
35: * <p>
36: * The changes can be deduced by querying <code>namingEvent</code>,
37: * especially <code>NamingEvent.getNewBinding()</code> and
38: * <code>NamingEvent.getOldBinding()</code>.
39: * </p>
40: *
41: * @param namingEvent
42: * the event notification
43: */
44: void objectChanged(NamingEvent namingEvent);
45:
46: }
|