Results 1 to 2 of 2

Thread: Service autowiring in SWF

  1. #1

    Default Service autowiring in SWF

    Instead of associating scope variable with an implementing class, is it possible to mention the interface for that particular class and spring autowire the service implementation just like in mvc?
    I tried simply by placing the interface instead of the class, which didn't work .

  2. #2
    Join Date
    Mar 2008
    Posts
    170

    Default

    Quote Originally Posted by anurudda@gmail.com View Post
    Instead of associating scope variable with an implementing class, is it possible to mention the interface for that particular class and spring autowire the service implementation just like in mvc?
    I tried simply by placing the interface instead of the class, which didn't work .
    I'm using the mentioned pattern,e.g.:

    Code:
    @Autowired
    private transient IEntityServiceBusinessClass entityServiceBusinessClass;
    with the below annotation in the Service impl:

    @Service("entityServiceBusinessClass")

    In my service-config I have the below statement (but not sure if needed):

    Code:
    <context:component-scan base-package="ch.delos.it.bd.services">
          <context:include-filter type="annotation"
              expression="org.springframework.stereotype.Service"/>
    </context:component-scan>
    - Peter

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •