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:21 +0200
changeset 230 3282ef5328a8
child 237 a84441ff1f73
permissions -rw-r--r--
Yet another example of spring autoconfiguration
     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 @Service
    14 public class StaticWordLibraryAnnotated extends StaticWordLibrary {
    15 }