Jun 9th, 2009, 04:05 PM
Is there an annotation equivalent for the following?
<bean id="fooService" class="com.mirth.foo.FooServiceImpl" destroy-method="stop" init-method="start" />
I need to define a start and stop method for my beans and it works fine with that xml but I want to use annotations.
Also using annotations, I am still required to do the following:
<service ref="barService" interface="com.mirth.bar.BarService" />
<reference id="barService" interface="com.mirth.bar.BarService" />
I thought annotations were supposed to be a replacement for XML. I have @Service on BarService and FooService, and @AutoWire whenever I use these services.
Jun 10th, 2009, 12:38 AM
Well how about reading the documentation, scroll down to section 3.11.6
Jun 10th, 2009, 03:13 PM
Awww, who's the newb who didn't RTFM? Thanks though that helped a lot, I couldn't see the annotations because I was missing an import package for javax.annotation.