1 22 package org.jboss.ejb3.cache; 23 24 import javax.ejb.EJBException ; 25 import org.jboss.ejb3.Container; 26 import org.jboss.ejb3.stateful.StatefulBeanContext; 27 28 34 public interface StatefulCache 35 { 36 39 public StatefulBeanContext create(); 40 41 public StatefulBeanContext create(Class [] initTypes, Object [] initValues); 42 43 public StatefulBeanContext get(Object key) throws EJBException ; 44 45 public void remove(Object key); 46 47 public void finished(StatefulBeanContext ctx); 48 49 public void initialize(Container container) throws Exception ; 50 51 void start(); 52 53 void stop(); 54 } 55 | Popular Tags |