Oh thanks, it was really easy and I didn't saw it, thanks again

On Sat, Nov 14, 2009 at 3:19 AM, Kalle Korhonen
<kalle.o.korho...@gmail.com> wrote:
> On Fri, Nov 13, 2009 at 9:56 PM, Alfonso Quiroga <alfonsose...@gmail.com> 
> wrote:
>> My question about tapestryIoC is... it doesn't use XML (I love that)
>> but if I'm in web layer (i.e. AppModule.java) and I want to reference
>> a server implementation, I CAN'T. I need via programming to do this:
>>   binder.bind(common.LoginService.class, server.LoginServiceImpl.class)
>> but I can't see LoginServiceImpl.class... my patch/workaround by now
>> is.. I let web-layer see the server-layer, but that is not happy. Any
>> suggestions? Thanks and sorry for my bad english!
>
> One of the many great things in Tapestry-ioc is autoloading modules.
> You can happily create ServicesModule where you put
> binder.bind(common.LoginService.class, server.LoginServiceImpl.class)
> etc. binding calls, then just use that module in your webapplication
> (add as dependency, inject services as needed), never having to expose
> the implementation classes to your web app. See
> http://tapestry.apache.org/tapestry5/tapestry-ioc/autoload.html for
> reference.
>
> Kalle
>
> ---------------------------------------------------------------------
> 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