I've got a custom logger annotation that is based off this post: http://jgeeks.blogspot.com/2008/10/a...to-spring.html
It works fine unless I try to use the logger in a method annotated with @Autowired. For example,
Is there a way to have my @AutowiredLogger wired before or with @Autowired annotations? Section 22.214.171.124 of the Spring Framework Reference advises not to use the InitializingBean interface - is my only option to configure my setDatasource method as an init method in my configuration XML?
public class MyDao
private Logger _logger;
private JdbcTemplate _jt;
public void setDatasource(DataSource ds)
_jt = new JdbcTemplate(ds);