Return-Path: Delivered-To: apmail-click-commits-archive@www.apache.org Received: (qmail 97177 invoked from network); 27 Oct 2010 02:09:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Oct 2010 02:09:21 -0000 Received: (qmail 7948 invoked by uid 500); 27 Oct 2010 02:09:21 -0000 Delivered-To: apmail-click-commits-archive@click.apache.org Received: (qmail 7934 invoked by uid 500); 27 Oct 2010 02:09:21 -0000 Mailing-List: contact commits-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@click.apache.org Delivered-To: mailing list commits@click.apache.org Received: (qmail 7926 invoked by uid 99); 27 Oct 2010 02:09:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Oct 2010 02:09:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Oct 2010 02:09:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6E7FA23889D7; Wed, 27 Oct 2010 02:08:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1027801 - /click/trunk/click/framework/src/org/apache/click/ControlRegistry.java Date: Wed, 27 Oct 2010 02:08:24 -0000 To: commits@click.apache.org From: sabob@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101027020824.6E7FA23889D7@eris.apache.org> Author: sabob Date: Wed Oct 27 02:08:24 2010 New Revision: 1027801 URL: http://svn.apache.org/viewvc?rev=1027801&view=rev Log: javadoc Modified: click/trunk/click/framework/src/org/apache/click/ControlRegistry.java Modified: click/trunk/click/framework/src/org/apache/click/ControlRegistry.java URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/ControlRegistry.java?rev=1027801&r1=1027800&r2=1027801&view=diff ============================================================================== --- click/trunk/click/framework/src/org/apache/click/ControlRegistry.java (original) +++ click/trunk/click/framework/src/org/apache/click/ControlRegistry.java Wed Oct 27 02:08:24 2010 @@ -118,11 +118,14 @@ public class ControlRegistry { * is the Ajax target. A control is an Ajax target if the * {@link Control#isAjaxTarget(org.apache.click.Context)} method returns true. * Once a target control is identified, ClickServlet invokes its - * {@link Control#onProcess()} method invoked. + * {@link Control#onProcess()} method. *

- * Please note: the ControlRegistry is stateless. For each request - * a new registry is created. This means a control is only registered for - * a single request and must be registered again for subsequent requests. + * In addition, the target control's behaviors (if any) will be processed and + * their interceptor methods invoked, passing the control to the behavior + * interceptor methods: + * {@link org.apache.click.Behavior#preGetHeadElements(org.apache.click.Control) preGetHeadElements(Control)}, + * {@link org.apache.click.Behavior#preResponse(org.apache.click.Control) preResponse(Control)} and + * {@link org.apache.click.Behavior#preDestroy(org.apache.click.Control) preDestroy(Control)}. * * @param control the control to register as an Ajax target */ @@ -142,11 +145,6 @@ public class ControlRegistry { * {@link org.apache.click.Behavior#preGetHeadElements(org.apache.click.Control) preGetHeadElements(Control)}, * {@link org.apache.click.Behavior#preResponse(org.apache.click.Control) preResponse(Control)} and * {@link org.apache.click.Behavior#preDestroy(org.apache.click.Control) preDestroy(Control)}. - *

- * Please note: the ControlRegistry is stateless. For each request - * a new registry is created. This means a control and behavior is only - * registered for a single request and will be registered again on subsequent - * requests. * * @param source the interceptor source control * @param controlInterceptor the control interceptor to register @@ -283,9 +281,9 @@ public class ControlRegistry { } /** - * Return the set of behavior enabled controls. + * Return the set of potential Ajax target controls. * - * @return the set of behavior enabled controls. + * @return the set of potential Ajax target controls */ Set getAjaxTargetControls() { if (ajaxTargetControls == null) {