1 22 package org.jboss.ejb3; 23 24 import java.util.Hashtable ; 25 import javax.ejb.TimerService ; 26 import javax.management.ObjectName ; 27 import javax.naming.Context ; 28 import javax.naming.InitialContext ; 29 30 import org.jboss.ejb3.statistics.InvocationStatistics; 31 32 38 public interface Container 39 { 40 String ENC_CTX_NAME = "java:comp.ejb3"; 41 42 Class getBeanClass(); 43 44 String getEjbName(); 45 46 ObjectName getObjectName(); 47 48 TimerService getTimerService(); 49 50 53 TimerService getTimerService(Object pKey); 54 55 Pool getPool(); 56 57 Object construct(); 58 59 void invokePostConstruct(BeanContext beanContext); 60 61 void invokePreDestroy(BeanContext beanContext); 62 63 void invokePostActivate(BeanContext beanContext); 64 65 void invokePrePassivate(BeanContext beanContext); 66 67 void invokeInit(Object bean); 68 69 void invokeInit(Object bean, Class [] initTypes, Object [] initValues); 70 71 public void create() throws Exception ; 72 73 public void start() throws Exception ; 74 75 public void stop() throws Exception ; 76 77 public void destroy() throws Exception ; 78 79 InitialContext getInitialContext(); 80 81 Hashtable getInitialContextProperties(); 82 83 Context getEnc(); 84 85 void processMetadata(DependencyPolicy dependencyPolicy); 86 87 DependencyPolicy getDependencyPolicy(); 88 89 InvocationStatistics getInvokeStats(); 90 } 91 | Popular Tags |