1 7 package jfox.test.kernel.component; 8 9 import org.jfox.framework.annotation.Service; 10 import org.jfox.framework.component.ComponentContext; 11 12 15 @Service(id="TestComponent") 16 public class TestComponentImpl implements TestComponent { 17 18 public void sayHello() { 19 log("Hello,World, :)!"); 20 } 21 22 public void postContruct(ComponentContext componentContext) { 23 log("postInstantiated!"); 24 } 25 26 public void postInject() { 27 log("postPropertiesSet"); 28 } 29 30 private void log(String msg){ 31 System.out.println("[" + this.getClass().getSimpleName() + "] " + msg); 32 } 33 34 public static void main(String [] args) { 35 36 } 37 } 38 | Popular Tags |