Results 1 to 3 of 3

Thread: Quick Question

  1. #1
    Join Date
    Jun 2009
    Posts
    10

    Default 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!

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    Well how about reading the documentation, scroll down to section 3.11.6
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Jun 2009
    Posts
    10

    Default

    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
  •