Return-Path: Delivered-To: apmail-tapestry-commits-archive@locus.apache.org Received: (qmail 75859 invoked from network); 12 Jan 2009 23:05:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2009 23:05:49 -0000 Received: (qmail 10041 invoked by uid 500); 12 Jan 2009 23:05:48 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 10011 invoked by uid 500); 12 Jan 2009 23:05:48 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 10002 invoked by uid 99); 12 Jan 2009 23:05:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 15:05:48 -0800 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; Mon, 12 Jan 2009 23:05:46 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EF79F23888A5; Mon, 12 Jan 2009 15:05:25 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r733956 - /tapestry/tapestry5/trunk/tapestry-ioc/src/site/apt/service.apt Date: Mon, 12 Jan 2009 23:05:25 -0000 To: commits@tapestry.apache.org From: hlship@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090112230525.EF79F23888A5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hlship Date: Mon Jan 12 15:05:25 2009 New Revision: 733956 URL: http://svn.apache.org/viewvc?rev=733956&view=rev Log: TAP5-386:Tapestry IoC documentation improvements Modified: tapestry/tapestry5/trunk/tapestry-ioc/src/site/apt/service.apt Modified: tapestry/tapestry5/trunk/tapestry-ioc/src/site/apt/service.apt URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-ioc/src/site/apt/service.apt?rev=733956&r1=733955&r2=733956&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-ioc/src/site/apt/service.apt (original) +++ tapestry/tapestry5/trunk/tapestry-ioc/src/site/apt/service.apt Mon Jan 12 15:05:25 2009 @@ -182,9 +182,11 @@ } +-----------------------------------------------------------------------------------+ - Here we've annotated the parameters of the service builder method to identify what - service to inject for that parameter. - + Tapestry assumes that parameters to builder methods are dependencies; in this example + it is able to figure out what services to pass in based just on the type (later we'll + see how we can fine tune this with annotations, when the service type is not sufficient + to identify a single service). + This is an example of when you would want to use the service builder method, rather than just binding the service interface to the implementation class: because we want to do something extra, in this case, register the new indexer service with the scheduler.