KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfox > test > kernel > component > TestComponentImpl


1 /*
2  * JFox - The most lightweight Java EE Application Server!
3  * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
4  *
5  * JFox is licenced and re-distributable under GNU LGPL.
6  */

7 package jfox.test.kernel.component;
8
9 import org.jfox.framework.annotation.Service;
10 import org.jfox.framework.component.ComponentContext;
11
12 /**
13  * @author <a HREF="mailto:jfox.young@gmail.com">Young Yang</a>
14  */

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 JavaDoc msg){
31         System.out.println("[" + this.getClass().getSimpleName() + "] " + msg);
32     }
33
34     public static void main(String JavaDoc[] args) {
35
36     }
37 }
38
Popular Tags