1 6 7 package org.jfox.ejb; 8 9 import java.lang.reflect.Method ; 10 import javax.ejb.TimerService ; 11 12 import org.jfox.ejb.connector.EJBInvocation; 13 import org.jfox.ejb.handler.HandlerChain; 14 import org.jfox.ejb.meta.EJBDescriptor; 15 import org.jfox.ioc.Component; 16 import org.jfox.ioc.ext.InitializableComponent; 17 import org.jfox.jndi.enc.EnterpriseContext; 18 19 26 27 public interface Bucket extends EJBOperation, Component, InitializableComponent { 28 29 33 35 38 ClassLoader getEJBClassLoader(); 39 40 Method getHomeMethod(EJBInvocation invocation) throws NoSuchMethodException ; 41 42 Method getBeanMethod(EJBInvocation invocation) throws NoSuchMethodException ; 43 44 51 Object invokeHome(EJBInvocation invocation) throws Exception ; 52 53 60 Object invokeBean(EJBInvocation invocation) throws Exception ; 61 62 EJBDescriptor getEJBDescriptor(); 63 64 EnterpriseContext getEnterpriseContext(); 65 66 TimerService getTimerService(); 67 68 EJBObjectId nextObjectId(); 69 70 EJBObjectId getHomeObjectId(); 71 72 Class getBeanClass(); 73 74 void setBucketMeta(BucketMeta meta); 75 76 void setHandlerChain(HandlerChain handlerChain); 77 78 EJBPoolableObject retrieveBean(Object key) throws Exception ; 79 80 void restoreBean(Object key, EJBPoolableObject pobj); 81 82 88 EJBObjectId createBean(EJBInvocation invocation) throws Exception ; 89 90 93 void syncBean(EJBInvocation invocation); 94 95 96 } | Popular Tags |