1 25 26 package org.objectweb.easybeans.api; 27 28 import javax.naming.Context ; 29 30 import org.objectweb.easybeans.api.bean.info.IBeanInfo; 31 import org.objectweb.easybeans.api.pool.Pool; 32 import org.objectweb.easybeans.rpc.api.EJBRequest; 33 import org.objectweb.easybeans.rpc.api.EJBResponse; 34 35 42 public interface Factory<PoolType, Clue> { 43 44 50 EJBResponse rpcInvoke(final EJBRequest request); 51 52 59 EJBResponse localCall(final long hash, final Object [] methodArgs, Long beanId); 60 61 65 void init() throws FactoryException; 66 67 70 void stop(); 71 72 76 String getClassName(); 77 78 82 EZBContainer getContainer(); 83 84 88 Context getJavaContext(); 89 90 94 void setJavaContext(final Context javaContext); 95 96 100 IBeanInfo getBeanInfo(); 101 102 106 Pool<PoolType, Clue> getPool(); 107 } 108 | Popular Tags |