-
Jun 30th, 2011, 01:51 AM
#1
Why is setDatSource() method in JdbcDaoSupport final?
Shouldn't this method have been made just public and not final as well? If not final I could do something like this on my DOAs which extends JdbcDoaSupport:
public class MyDao extends JdbcDaoSupport implements MyDoaIntF{
@Autowired
@Qualifier("coolDataSource")
@Override
public void setDataSource(DataSource dataSource){
super.setDataSource(dataSource);
}
}
now I have to do something like this:
@Autowired
@Qualifier("coolDataSource")
public void setMyDataSource(DataSource dataSource){
super.setDataSource(dataSource);
}
which its not entirely cool.
p.s. I may be a bit pedantic here....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules