samples/componentinjection/anagram-modular/src-app-spring-scan/org/apidesign/anagram/app/springscan/StaticWordLibraryAnnotated.java
1 package org.apidesign.anagram.app.springscan;
3 import org.apidesign.anagram.wordstatic.StaticWordLibrary;
4 import org.springframework.stereotype.Service;
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.
13 // BEGIN: anagram.spring.autowire.WordLibrary
15 public class StaticWordLibraryAnnotated extends StaticWordLibrary {
16 public StaticWordLibraryAnnotated() {
19 // END: anagram.spring.autowire.WordLibrary