| java.lang.Object org.jfox.ejb3.SimpleEJB3Container
SimpleEJB3Container | public class SimpleEJB3Container implements EJBContainer,ModuleListener(Code) | | �支� Local/Stateless Session Bean, Local MDB
�时,该 Container 也承担了 NamingContainer 的能力
å¿…é¡»ä¿?è¯? SimpleEJB3Container ç¬¬ä¸€ä¸ªåŠ è½½ï¼Œå?¦åˆ™ï¼Œæ— 法监å?¬åˆ° ModuleEventï¼Œè€Œæ— æ³• load ejb
author: Young Yang |
Inner Class :public class ContainerNamingContext extends ContextAdapter | |
Inner Class :public class ContainerTimerService implements TimerService | |
Field Summary | |
protected Logger | logger |
Method Summary | |
public EJBBucket | getEJBBucket(String name) | public Collection<EJBBucket> | getEJBBucketByBeanInterface(Class interfaceClass) | public MessageService | getMessageService() | public Context | getNamingContext() | public TimerService | getTimerService() | public TransactionManager | getTransactionManager() | public int | getTransactionTimeout() | public Object | invokeEJB(EJBObjectId ejbObjectId, Method interfaceMethod, Object[] params, SessionContext securityContext) | protected Object | invokeEJBInvocation(EJBInvocation invocation) | protected Object | invokeTimeout(EJBObjectId ejbObjectId, Method interfaceMethod, Object[] params, SessionContext sessionContext) | public Collection<EJBBucket> | listBuckets() | protected EJBBucket[] | loadEJB(Module module) | public void | moduleChanged(ModuleEvent moduleEvent) | public void | postContruct(ComponentContext componentContext) | public void | postInject() | public Object | postInvoke(Method method, Object[] params, Object result, Throwable exception) | public void | postUnregister() | public boolean | preInvoke(Method method, Object[] params) | public boolean | preUnregister(ComponentContext context) | public void | setTransactionTimeout(int transactionTimeout) | protected void | unloadEJB(Module module) |
logger | protected Logger logger(Code) | | |
SimpleEJB3Container | public SimpleEJB3Container()(Code) | | |
getEJBBucketByBeanInterface | public Collection<EJBBucket> getEJBBucketByBeanInterface(Class interfaceClass)(Code) | | 通过接�类� EJBBucket
Parameters: interfaceClass - bean interface |
getTimerService | public TimerService getTimerService()(Code) | | |
getTransactionManager | public TransactionManager getTransactionManager()(Code) | | |
getTransactionTimeout | public int getTransactionTimeout()(Code) | | |
invokeEJB | public Object invokeEJB(EJBObjectId ejbObjectId, Method interfaceMethod, Object[] params, SessionContext securityContext) throws Exception(Code) | | æž„é€ ejb invocation,并且获得 chain,然å?Žå?‘起调用
Parameters: ejbObjectId - ejb object id Parameters: interfaceMethod - ejb interfaceMethod, 已�解��实体方法 Parameters: params - parameters Parameters: securityContext - security context throws: Exception - exception |
invokeTimeout | protected Object invokeTimeout(EJBObjectId ejbObjectId, Method interfaceMethod, Object[] params, SessionContext sessionContext) throws Exception(Code) | | invoke timeout method
Parameters: ejbObjectId - ejb object id Parameters: interfaceMethod - timeout interfaceMethod,�能是实体方法,也�能是 TimedObject 接�方法 Parameters: params - parameters throws: Exception - exception |
moduleChanged | public void moduleChanged(ModuleEvent moduleEvent)(Code) | | 监å?¬ Module äº‹ä»¶ï¼Œæ ¹æ?® Module çš„ load/unload 事件æ?¥åŠ 载其ä¸çš„ EJB
Parameters: moduleEvent - module event |
postInject | public void postInject()(Code) | | |
postUnregister | public void postUnregister()(Code) | | |
setTransactionTimeout | public void setTransactionTimeout(int transactionTimeout)(Code) | | |
|
|