added spring subsystem implementation.
[utils] / system / spring / src / test / java / org / wamblee / system / spring / BlaService.java
diff --git a/system/spring/src/test/java/org/wamblee/system/spring/BlaService.java b/system/spring/src/test/java/org/wamblee/system/spring/BlaService.java
new file mode 100644 (file)
index 0000000..9b103b8
--- /dev/null
@@ -0,0 +1,20 @@
+package org.wamblee.system.spring;
+
+public class BlaService {
+       private HelloService _hello; 
+       
+       public BlaService(HelloService aService) {
+               if ( aService == null ) { 
+                       throw new IllegalArgumentException("helloService is null"); 
+               }
+               _hello = aService; 
+       }
+       
+       public String execute() { 
+               return _hello.say(); 
+       }
+       
+       public void stop() { 
+               System.out.println("Blaservice stopping");
+       }
+}