samples/componentinjection/anagram-modular/src-app-spring-scan/org/apidesign/anagram/app/springscan/StaticWordLibraryAnnotated.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 10:07:48 +0200
changeset 237 a84441ff1f73
parent 230 3282ef5328a8
child 245 ce3b323add40
permissions -rw-r--r--
Enough of spring
     1 package org.apidesign.anagram.app.springscan;
     2 
     3 import org.apidesign.anagram.wordstatic.StaticWordLibrary;
     4 import org.springframework.stereotype.Service;
     5 
     6 /* This class shall be in its own module, not here, but because of the need
     7  * to see the @Service annotation, I've put it here. The right solution would
     8  * be to add dependency of the module providing super class on spring and
     9  * use the annotation directly there.
    10  */
    11 
    12 
    13 // BEGIN: anagram.spring.autowire.WordLibrary
    14 @Service
    15 public class StaticWordLibraryAnnotated extends StaticWordLibrary {
    16     public StaticWordLibraryAnnotated() {
    17     }
    18 }
    19 // END: anagram.spring.autowire.WordLibrary