I have an Interface with 2 different implementations

lets say  IMyInterface   MyImplementation1  Myimplementation2


until now I only needed to use one of the implementations at once, so in my
client code I just wrote @Inject private IMyInterface


and everithing was ok, now I'm on the need to use at the same time both
implementations 

My first idea was to write: 

binder.bind(IMyInterface.class,MyImplementation1.class).withId("Myservice1");
binder.bind(IMyInterface.class,MyImplementation2.class).withId("MyService2");

But now the question is: How I am suposed to used it from the client side( I
mean a page a component)?

@Inject MyService1?

thanks for the answer!






-- 
View this message in context: 
http://www.nabble.com/T5-Services-with-diferent-Implementation-tp17348534p17348534.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to