From continuum-users-return-4870-apmail-maven-continuum-users-archive=maven.apache.org@maven.apache.org Fri Oct 05 07:15:58 2007 Return-Path: Delivered-To: apmail-maven-continuum-users-archive@www.apache.org Received: (qmail 72462 invoked from network); 5 Oct 2007 07:15:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2007 07:15:57 -0000 Received: (qmail 72755 invoked by uid 500); 5 Oct 2007 07:15:45 -0000 Delivered-To: apmail-maven-continuum-users-archive@maven.apache.org Received: (qmail 72723 invoked by uid 500); 5 Oct 2007 07:15:45 -0000 Mailing-List: contact continuum-users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-users@maven.apache.org Delivered-To: mailing list continuum-users@maven.apache.org Received: (qmail 72711 invoked by uid 99); 5 Oct 2007 07:15:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 00:15:45 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.168.101.18] (HELO relay00-mail.uk.clara.net) (80.168.101.18) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 07:15:44 +0000 Received: from chb28-2-88-163-39-128.fbx.proxad.net ([88.163.39.128]:3493 helo=[127.0.0.1]) by relay00-mail.uk.clara.net (smtp-vh.amenworld.com [195.8.80.30]:251) with esmtpa (authdaemon_plain:emmanuel@venisse.net) id 1IdhP8-0004ft-2P (Exim 4.60) for continuum-users@maven.apache.org (return-path ); Fri, 05 Oct 2007 07:15:22 +0000 Message-ID: <4705E477.7070408@venisse.net> Date: Fri, 05 Oct 2007 09:15:03 +0200 From: Emmanuel Venisse User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: continuum-users@maven.apache.org Subject: Re: writing a notifier References: <0540AAAB-1771-4E77-910D-31D99B25230F@rallydev.com> In-Reply-To: <0540AAAB-1771-4E77-910D-31D99B25230F@rallydev.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Michael Masters a écrit : > I've looked at JabberContinuumNotifier and I have some questions on how > I create my own notifier. > > 1. Once I write my notifier by extending AbstractContinuumNotifier, how > do I install it. In other words, where do I put it the class file? Can I > jar up all my classes and place them somewhere? To build your notifier, run 'mvn clean install' on your notifier project to create the jar then put it under apps/continuum/webapp/WEB-INF/lib/ > > 2. Can someone explain how I am suppose to configure my notifier in > apps/continuum/conf/application.xml? org.codehaus.plexus.notification.notifier.Notifier your_notifier_id package.notifier_class > > * It looks like the tag is suppose to define some classes > that my notifier is dependent on. Is this true? If you have some requirement in your class like 'ConfiguredService' declared like that in jabber notifier class: /** * @plexus.requirement */ private ConfigurationService configurationService; you must add it in the tag in application.xml, so plexus will set and initialize configurationService automatically. > > * What's allowed in the tag? For example, I need things > like login ID, password, and URL to configure the notifier. I assume I > add tags for this in . Is this true? If so, then how do > I get to this information from my notifier? The configuration part is to initialize your notifier when it is created by plexus. If in your configuration, you add myPassword, plexus will initialize the private password field in your class automatically. Plexus site: http://plexus.codehaus.org If you want to use your notifier from the UI, you'll need to add some new JSPs in the webapp and modify some other to add your notifier. Emmanuel