Service binding based on condition
Nathan Quirynen <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.user |
|---|---|
| Organization | Pension Architects |
| Message-ID | <[email protected]> |
Hi,
When having just one implementation of a service interface the binding
is done like the following:
public static void bind(ServiceBinder binder) {
binder.bind(SomeServiceInterface.class, SomeServiceImpl.class);
}
But now I need to bind the interface to one of multiple possible
implementations. The condition is just based on a symbol value.
How would I do this conditional binding?
Nathan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]