01: /*
02: * JFox - The most lightweight Java EE Application Server!
03: * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
04: *
05: * JFox is licenced and re-distributable under GNU LGPL.
06: */
07: package org.jfox.framework.component;
08:
09: /**
10: * ComponentInitialization æ??供了两个回调方法,
11: * ä½¿å¾—åœ¨ç»„ä»¶æž„é€ ä¹‹å?Žï¼Œä»¥å?Šä¾?赖注入完æˆ?之å?Žè¿›è¡Œé¢?外的æ“?作。
12: *
13: * instantiated方法是唯一å?¯ä»¥ä¼ å…¥ComponentContext的回调方法,
14: * 如果Component需�使用ComponentContex,就必须实现该接�
15: *
16: * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
17: */
18: public interface ComponentInitialization {
19:
20: /**
21: * Component 实例化之�的回调方法
22: * �以��赖注入开始�的�始化�作
23: * @param componentContext Component context
24: */
25: public void postContruct(ComponentContext componentContext);
26:
27: /**
28: * Component �赖注入完�之�的回调方法
29: * �以�通过该方法进行注入之��外的检查工作,以��组件�始化�作
30: */
31: public void postInject();
32:
33: }
|