1 45 46 package org.openejb; 47 48 import java.util.HashMap ; 49 import java.util.Properties ; 50 51 68 public interface Container { 69 70 final public static int STATELESS = 1; 71 final public static int STATEFUL = 2; 72 final public static int ENTITY = 3; 73 final public static int MESSAGE_DRIVEN = 4; 74 75 76 81 public void init(Object containerId, HashMap deployments, Properties properties) 82 throws OpenEJBException; 83 84 85 90 public int getContainerType( ); 91 92 97 public Object getContainerID(); 98 99 100 108 public DeploymentInfo getDeploymentInfo(Object deploymentID); 109 110 116 public DeploymentInfo [] deployments(); 117 118 126 public void deploy(Object deploymentID, DeploymentInfo info) throws OpenEJBException; 127 } 128 | Popular Tags |