Re: [opennms-devel] recommended way of using autowired

2013-05-14 Thread Seth Leger
I would say that we do prefer @Autowired over manual injection for almost everything since it makes your Spring context files much smaller. We would like to have all of the main daemon classes using @Autowired, especially when they access the DAO classes since we generally only have a single implem

Re: [opennms-devel] recommended way of using autowired

2013-05-14 Thread Seth Leger
Hi Nalla, We do not have a strong convention for how to do autowiring but there are some general guidelines. You would want to use constructor wiring for constant, final values that will not change over the lifetime of the object. Constructor wiring is also good if the class only has 1 or 2 fields