Return-Path: Delivered-To: apmail-incubator-beehive-dev-archive@www.apache.org Received: (qmail 80758 invoked from network); 13 Jul 2005 04:35:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2005 04:35:57 -0000 Received: (qmail 4780 invoked by uid 500); 13 Jul 2005 04:35:56 -0000 Delivered-To: apmail-incubator-beehive-dev-archive@incubator.apache.org Received: (qmail 4639 invoked by uid 500); 13 Jul 2005 04:35:55 -0000 Mailing-List: contact beehive-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list beehive-dev@incubator.apache.org Received: (qmail 4528 invoked by uid 99); 13 Jul 2005 04:35:54 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2005 21:35:42 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id C2A4F15 for ; Wed, 13 Jul 2005 06:35:38 +0200 (CEST) Message-ID: <577346491.1121229338795.JavaMail.jira@ajax.apache.org> Date: Wed, 13 Jul 2005 06:35:38 +0200 (CEST) From: "Xibin Zeng (JIRA)" To: beehive-dev@incubator.apache.org Subject: [jira] Commented: (BEEHIVE-846) add a "PageFlow registered" event to the EventReporter In-Reply-To: <120714111.1120768090261.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/BEEHIVE-846?page=comments#action_12315668 ] Xibin Zeng commented on BEEHIVE-846: ------------------------------------ Could we pass the action paths in the flowControllerRegisterered() event? In other words, could we change the signature from flowControllerRegistered( String modulePath, String controllerClassName ) to flowControllerRegistered( String modulePath, String controllerClassName, String[] actions ) I think a slight modification to AutoRegisterActionServlet could achieve this: // // If this is a FlowController module, make a callback to the event reporter. // ControllerConfig cc = ac.getControllerConfig(); if ( cc instanceof PageFlowControllerConfig ) { PageFlowControllerConfig pfcc = ( PageFlowControllerConfig ) cc; PageFlowEventReporter er = AdapterManager.getServletContainerAdapter( getServletContext() ).getEventReporter(); LinkedList actions = new LinkedList(); ActionConfig accs[] = ac.findActionConfigs(); for (ActionConfig acc : accs) { actions.add(acc.getPath()); } er.flowControllerRegistered( modulePath, pfcc.getControllerClass(), actions.toArray(new String[actions.size()]) ); } > add a "PageFlow registered" event to the EventReporter > ------------------------------------------------------ > > Key: BEEHIVE-846 > URL: http://issues.apache.org/jira/browse/BEEHIVE-846 > Project: Beehive > Type: Improvement > Components: NetUI > Versions: TBD > Environment: all > Reporter: David Read > Assignee: David Read > Priority: Minor > Fix For: V1 > > Currently the set of PageFlows in a webapp aren't know until they are invoked. If you want to do things like integrate monitoring via JMX, you need a lazy instantiation model. If there were an event generated when a PageFlow was registered, you'd have a hook to know that something "new" was now part of the webapp. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira