Hi guys !

I do need some behaviour in Tapestry already available to me via CDI in a
non-web Application.

Let me explain myself :

I have a product, made for different customers.

The product is the same, but for some different implementations of common
services each one has.

For example :


com.mycompany.product.service.customer1.SubscribeService
com.mycompany.product.service.customer2.SubscribeService
com.mycompany.product.service.customer3.SubscribeService


In CDI ( Using weld ), y do use the beans.xml file facility to populate the
service for the desired customer.
Then, in the code all i need is invoking the @Inject into a service, and i
will get the customer X service  at my disposal.

But in Tapestry, i do not know how to implement this.

I believe that dinamically adding a service to  the  public static void
bind(ServiceBinder binder) in the AppModule is not the wright way to achieve
it.
   

May any of you help me with this ? I do not need any runtime behaviour, just
compile time.

Thanks everyone, and long life to Tapestry ! ( So to Howard and all the
maintainers, of course  :) )

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-and-CDI-the-need-for-tp4876507p4876507.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to