KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > phoenix > BlockListener


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.phoenix;
9
10 import java.util.EventListener JavaDoc;
11
12 /**
13  * Implementations of this interface receive notifications about
14  * changes to the state of {@link Block}s in the Server Application
15  * they are a part of. The implementation <em>must</em> have a zero argument
16  * constructor and is instantiated before any other component of the Server
17  * Application. To receive notification events, the implementation class
18  * should be specified in the <tt>assembly.xml</tt> descriptor.
19  *
20  * @author <a HREF="mailto:peter at apache.org">Peter Donald</a>
21  * @deprecated This interface has been replaced by ApplicationListener
22  */

23 public interface BlockListener
24     extends EventListener JavaDoc
25 {
26     /**
27      * Notification that a block has just been added
28      * to Server Application.
29      *
30      * @param event the BlockEvent
31      */

32     void blockAdded( BlockEvent event );
33
34     /**
35      * Notification that a block is just about to be
36      * removed from Server Application.
37      *
38      * @param event the BlockEvent
39      */

40     void blockRemoved( BlockEvent event );
41 }
42
Popular Tags