Return-Path: Delivered-To: apmail-jakarta-avalon-cvs-archive@apache.org Received: (qmail 63127 invoked from network); 2 Feb 2002 12:20:26 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Feb 2002 12:20:26 -0000 Received: (qmail 11913 invoked by uid 97); 2 Feb 2002 12:20:25 -0000 Delivered-To: qmlist-jakarta-archive-avalon-cvs@jakarta.apache.org Received: (qmail 11891 invoked by uid 97); 2 Feb 2002 12:20:24 -0000 Mailing-List: contact avalon-cvs-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-cvs@jakarta.apache.org Received: (qmail 11880 invoked by uid 97); 2 Feb 2002 12:20:24 -0000 Date: 2 Feb 2002 12:20:24 -0000 Message-ID: <20020202122024.20489.qmail@icarus.apache.org> From: hammant@apache.org To: jakarta-avalon-phoenix-cvs@apache.org Subject: cvs commit: jakarta-avalon-phoenix/src/xdocs what-is-an-application-listener.xml book.xml phoenix.uris X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N hammant 02/02/02 04:20:24 Modified: src/xdocs book.xml phoenix.uris Added: src/xdocs what-is-an-application-listener.xml Log: app listener words. Revision Changes Path 1.11 +1 -0 jakarta-avalon-phoenix/src/xdocs/book.xml Index: book.xml =================================================================== RCS file: /home/cvs/jakarta-avalon-phoenix/src/xdocs/book.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- book.xml 3 Dec 2001 09:03:08 -0000 1.10 +++ book.xml 2 Feb 2002 12:20:24 -0000 1.11 @@ -39,6 +39,7 @@ + 1.9 +1 -0 jakarta-avalon-phoenix/src/xdocs/phoenix.uris Index: phoenix.uris =================================================================== RCS file: /home/cvs/jakarta-avalon-phoenix/src/xdocs/phoenix.uris,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- phoenix.uris 22 Dec 2001 13:04:16 -0000 1.8 +++ phoenix.uris 2 Feb 2002 12:20:24 -0000 1.9 @@ -15,6 +15,7 @@ block-developers-guide.html what-is-a-block.html what-is-a-block-listener.html +what-is-an-application-listener.html blockinfo-specification.html creating-a-block.html example-configuration.html 1.1 jakarta-avalon-phoenix/src/xdocs/what-is-an-application-listener.xml Index: what-is-an-application-listener.xml ===================================================================
Block Developers Guide What is an Application Listener?

This is very similar to BlockListener in that it is notified during lifecycle of blocks and application. In Java terms the ApplicationListener interface extends BlockListener so it is always informd of both types of events

ApplicationListener components are created before any Blocks are created in an Application. They receive notifications before and after the Applictaion is started and stopped.

Like normal blocks, an application listener can be LogEnabled and take configuration via Configurable. The special feature is that it must implement ApplicationListener and implement the four methods that are a consequence of that (as well as four from BlockListener). The following section in assembly.xml causes instantiation of the application listener. It is exactly the same as that for BlockListener:

<listener class="pkg.MyApplicationListener" name="a-suitable-name" />
Copyright (c) @year@ The Jakarta Apache Project All rights reserved. $Revision: 1.1 $ $Date: 2002/02/02 12:20:24 $
-- To unsubscribe, e-mail: For additional commands, e-mail: