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: * $Header:$
18: */
19: package org.apache.beehive.netui.pageflow.requeststate;
20:
21: import java.util.EventListener;
22: import java.util.Map;
23:
24: /**
25: * The listener interface for receiving naming events from the NameService. The class that is interested in
26: * processing a <code>NamingObject</code> event must implement this interface. The object is registered with the <code>NameService</code>
27: * using the <code>addNamingObjectListener</code> method. When an object is named, the <code>namingObject</code> method is
28: * called.
29: */
30: public interface NamingObjectListener extends EventListener {
31: /**
32: * This method is called when an object is registered with the <code>NameService</code> to listen to
33: * <code>NamingObject</code> events. The <code>objectAttributes</code> map is passed allowing the object
34: * to store information in the object. The Map is held by a weak reference by the NameService so it
35: * will be released when the <code>namedObject</code> is released.
36: * @param namedObject The object that will be named.
37: * @param objectAttributes A map that associates data with the data.
38: */
39: void namingObject(INameable namedObject, Map objectAttributes);
40: }
|