1 23 package com.sun.ejb; 24 25 import java.util.Enumeration ; 26 import java.rmi.Remote ; 27 28 import javax.persistence.EntityManagerFactory; 29 import javax.persistence.EntityManager; 30 31 import javax.ejb.*; 32 import javax.ejb.spi.HandleDelegate ; 33 import javax.transaction.TransactionManager ; 34 import com.sun.enterprise.deployment.EjbDescriptor; 35 36 import com.sun.enterprise.config.ConfigContext; 37 38 47 public interface ContainerFactory { 48 53 Container createContainer(EjbDescriptor ejbDescriptor, 54 ClassLoader loader, 55 com.sun.enterprise.SecurityManager sm, 56 ConfigContext dynamicConfigContext) 57 throws Exception ; 58 59 62 Container getContainer(long ejbId); 63 64 67 public void removeContainer(long ejbId); 68 69 72 public Enumeration listContainers(); 73 74 80 public TransactionManager getTransactionMgr(); 81 82 85 public EjbDescriptor getEjbDescriptor(long ejbId); 86 87 88 public Object getEJBContextObject(String contextType); 89 90 91 96 public EntityManager lookupExtendedEntityManager(EntityManagerFactory factory); 97 98 101 public void initEJBTimerService() throws Exception ; 102 public void restoreEJBTimers() throws Exception ; 103 public void shutdownEJBTimerService(); 104 105 } 106 | Popular Tags |