I haven't found any code related to setter injection. 

I'm researching if it is possible to convert some old spring beans into using 
Tapestry IOC without a lot of work. Anonymous setter injection is the only way 
how to achieve it.

Denis

On 25.4.2011, at 2:24, Igor Drobiazko wrote:

> Actually setter injection is supposed to work when autobuilding services.
> 
> Отправлено с iPhone
> 
> 25.04.2011, в 00:00, "Thiago H. de Paula Figueiredo" <thiag...@gmail.com> 
> написал(а):
> 
>> On Fri, 22 Apr 2011 08:18:24 -0300, Denis Stepanov 
>> <denis.stepa...@gmail.com> wrote:
>> 
>>> Is there any way to use setter injection in Tapestry IOC?
>> 
>> Yes, but not using autobuilding. Use a builder method instead:
>> 
>> public static YourService buildYourService(DependencyType1 type1, ...) {
>>   YourService service = new ...;
>>   service.setDependencyType1(type1);
>>   return build;
>> }
>> 
>> -- 
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
>> instructor
>> Owner, Ars Machina Tecnologia da Informação Ltda.
>> http://www.arsmachina.com.br
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to