org.jfox.ejb
Interface Container
- All Superinterfaces:
- Component, Interceptable, Loggable, Persistentable, java.io.Serializable
- All Known Implementing Classes:
- ContainerImpl
- public interface Container
- extends Component, Interceptable
容器接口,定义 ejb 容器需要实现的方法,Container 还应该包含所有 ejb bucket 共享的资源,比如:ThreadPool
Container 数据存储结构
homeClassName -> bucket
listBuckets
public java.util.Iterator listBuckets()
- Returns:
- 所有 bean bucket 的 key 的 iterator
dropBucket
public void dropBucket(java.lang.String beanClassName)
createBucket
public void createBucket(BucketMetaData meta)
throws java.lang.Exception
- 根据 deployer 传来的参数,生成一个 bean bucket,并且把其 Home 绑定到 jndi
- Throws:
java.lang.Exception
invoke
public java.lang.Object invoke(Invocation invocation)
throws java.lang.Exception
- invoke a method
- Returns:
-
- Throws:
java.lang.Exception