org.jfox.ejb
Interface Bucket

All Superinterfaces:
EJBOperation
All Known Implementing Classes:
BucketSupport

public interface Bucket
extends EJBOperation

a bucket 容纳一个特定的 bean,保存了这个 bean 的一切资源,bucket 放在 container 中 继承 EJBOperation 是为了强迫实现它的方法,以便在方法调用时可以直接调用


Method Summary
 java.lang.reflect.Method getBeanMethod(Invocation invocation)
           
 EJBClassLoader getEJBClassLoader()
          得到该 ejb 的 classLoader
 java.lang.reflect.Method getHomeMethod(Invocation invocation)
           
 java.lang.Object invokeBean(Invocation invocation)
          执行 Bean 的方法
 java.lang.Object invokeHome(Invocation invocation)
          来自 EJBHome 的方法
 
Methods inherited from interface org.jfox.ejb.EJBOperation
ejbCreate, getEJBHome, getEJBMetaData, getHandle, getHomeHandle, getPrimaryKey, isIdentical, remove, remove, remove
 

Method Detail

getEJBClassLoader

public EJBClassLoader getEJBClassLoader()
得到该 ejb 的 classLoader


getHomeMethod

public java.lang.reflect.Method getHomeMethod(Invocation invocation)
                                       throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

getBeanMethod

public java.lang.reflect.Method getBeanMethod(Invocation invocation)
                                       throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

invokeHome

public java.lang.Object invokeHome(Invocation invocation)
                            throws java.lang.Exception
来自 EJBHome 的方法

Parameters:
invocation -
Returns:
Bean 的 ObjectId
Throws:
java.lang.Exception

invokeBean

public java.lang.Object invokeBean(Invocation invocation)
                            throws java.lang.Exception
执行 Bean 的方法

Parameters:
invocation -
Returns:
Throws:
java.lang.Exception