-
Jun 9th, 2009, 04:05 PM
#1
Quick Question
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.
Thank you!
-
Jun 10th, 2009, 12:38 AM
#2
Well how about reading the documentation, scroll down to section 3.11.6
-
Jun 10th, 2009, 03:13 PM
#3
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.
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