Results 1 to 3 of 3

Thread: autoscan a collection of services

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    12

    Default autoscan a collection of services

    hi, all

    I think it is a common scenario, but I could find a clear answer/solution to it yet. Basically, I have a service interface with many different service providers. What should be the proper annotation so that I could auto collect all the service provider instances? btw - I have component scan enabled and each provider is annotated with @Service ... but I am a bit lost on how to express wiring them into collection?

    thanks for help

    Oliver

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

    Default

    I suggest a read of the reference guide... Section 3.9.2 has an example of what you want...
    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
    Oct 2010
    Posts
    12

    Default

    I think I got it.

    Thank you for the link.

    Oliver

    Quote Originally Posted by Marten Deinum View Post
    I suggest a read of the reference guide... Section 3.9.2 has an example of what you want...

Posting Permissions

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