It is not really clear to me what you want to do? Are you talking about picking the correct impl once (during initial application setup) or selecting the impl. per request. Is the "input parameter" something that is defined during registry bootstrap or passed in on every call?
For the prior I suppose you could use modules or symbols or a customized build method. For the latter you could create a map configuration (name->impl), inject that into your service and lookup the named impl. at run time. -- Chris On Fri, May 6, 2016 at 7:49 PM, Rafael Bugajewski <raf...@juicycocktail.com> wrote: > Hello, > > I use tapestry-ioc in a Jersey JAX-RS application to access my Tapestry > services. I have a LicenseService that generates a software license with > the help of another service. This LicenseGeneratorService has > implementations for different products Product1LicenseGeneratorServiceImpl, > Product2LicenseGeneratorServiceImpl, …. > > Based on a String input parameter I want tapestry-ioc to let the > LicenseServiceImpl use the correct LicenseGeneratorService implementation. > > What’s the cleanest way / pattern to approach this problem with the help > of tapestry-ioc? > > Best, > Rafael > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >