KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > ioc > connector > Handler


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.ioc.connector;
8
9 import java.lang.reflect.Method JavaDoc;
10
11 /**
12  * Handler 是一个具体协议的响应器,比如:一个EJB Container
13  *
14  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
15  */

16
17 public interface Handler {
18
19     /**
20      * 该Handler负责处理的Invocation类型
21      * @return
22      */

23     Class JavaDoc getInvocationClass();
24
25     /**
26      * 获得与Handler对应的Container
27      * @return
28      */

29     Container getContainer();
30
31     /**
32      * execute the invcation
33      * @param invocation
34      * @return
35      * @throws Throwable
36      */

37     Object JavaDoc execute(Invocation invocation) throws Throwable JavaDoc ;
38
39     Method JavaDoc getMethodByHash(String JavaDoc hashId);
40 }
41
Popular Tags