Does Weld currently require the use of @Inject on delegate injection points?
I've just noticed that with the change to the 330 annotations, it
perhaps makes more sense to change the name of this annotation and
require that @Inject be used, like this:
@Decorator
class TimestampLogger implements Logger {
private Logger logger;
@Inject
public TimestampLogger(@Delegate @Debug Logger logger) {
this.logger=logger;
}
...
}
@Decorator
class TimestampLogger implements Logger {
@Inject @Delegate @Any Logger logger;
...
}
We could perhaps even say that @Delegate is a qualifier.
--
Gavin King
gavin.king(a)gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org