You could get rid of the unnecessary interface using @InjectService or a
marker annotation

eg:

binder.bind(MethodAdvice.class,
ExceptionDisplayMethodAdviceImpl.class).withId("foo");
...
@InjectService("foo")
private MethodAdvice advice;

More info here:
http://tapestry.apache.org/defining-tapestry-ioc-services.html

Reply via email to