|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.huihoo.jfox.system.ComponentSupport
org.jfox.ejb.ContainerImpl
EJB Container 实现,Container 是一个 singleton 类,一个 Container 可以布署多种 ejb ,
| Field Summary |
| Fields inherited from class org.huihoo.jfox.system.ComponentSupport |
logger, name, proxyInstance, sequence, state |
| Method Summary | |
void |
addInterceptor(Interceptor interceptor)
加入一个拦截器 |
void |
createBucket(BucketMetaData meta)
create a bean bucket and bind it's home to jndi |
protected void |
doDestroy()
do actually destory action |
protected void |
doInit()
do actually create action |
void |
dropBucket(java.lang.String beanClassName)
remove the bucket from container , 发生在 undeploy 一个 bean 的时候 |
static Container |
getInstance()
|
java.util.Iterator |
interceptors()
列出所有的拦截器 |
java.lang.Object |
invoke(Invocation invocation)
container 可能对该方法调用进行一些统一的调控,如:安全验证等,然后 forward 给 bucket 执行 |
static boolean |
isLocal()
用来测试一个 Bean 是不是和 Container 在一个 JVM 内 |
java.util.Iterator |
listBuckets()
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class org.huihoo.jfox.system.ComponentSupport |
destroy, getLogger, getName, getState, init, parseName, setLogger, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.huihoo.jfox.system.Component |
destroy, getName, getState, init |
| Methods inherited from interface org.huihoo.jfox.system.Loggable |
getLogger |
| Method Detail |
public static Container getInstance()
public static boolean isLocal()
protected void doInit()
throws java.lang.Exception
ComponentSupport
doInit in class ComponentSupportjava.lang.Exception
protected void doDestroy()
throws java.lang.Exception
ComponentSupport
doDestroy in class ComponentSupportjava.lang.Exceptionpublic java.util.Iterator listBuckets()
listBuckets in interface Container
public void createBucket(BucketMetaData meta)
throws java.lang.Exception
createBucket in interface Containermeta -
java.lang.Exceptionpublic void dropBucket(java.lang.String beanClassName)
dropBucket in interface Container
public java.lang.Object invoke(Invocation invocation)
throws java.lang.Exception
invoke in interface Containerjava.lang.Exception
public void addInterceptor(Interceptor interceptor)
throws java.lang.Exception
Interceptable
addInterceptor in interface Interceptableinterceptor -
java.lang.Exceptionpublic java.util.Iterator interceptors()
Interceptable
interceptors in interface Interceptablepublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||