1 23 package com.sun.ejb; 24 25 import java.rmi.Remote ; 26 import javax.transaction.UserTransaction ; 27 import javax.ejb.*; 28 import com.sun.enterprise.deployment.EjbDescriptor; 29 import com.sun.enterprise.ComponentInvocation; 30 import com.sun.ejb.containers.EntityContextImpl; 31 32 56 public interface Container { 57 58 public int TX_NOT_INITIALIZED = 0; public int TX_NOT_SUPPORTED = 1; 61 public int TX_BEAN_MANAGED = 2; 62 public int TX_REQUIRED = 3; 63 public int TX_SUPPORTS = 4; 64 public int TX_REQUIRES_NEW = 5; 65 public int TX_MANDATORY = 6; 66 public int TX_NEVER = 7; 67 68 public String [] txAttrStrings = { "TX_NOT_INITIALIZED", 70 "TX_NOT_SUPPORTED", 71 "TX_BEAN_MANAGED", 72 "TX_REQUIRED", 73 "TX_SUPPORTS", 74 "TX_REQUIRES_NEW", 75 "TX_MANDATORY", 76 "TX_NEVER" }; 77 78 public int SEC_NOT_INITIALIZED = 0; public int SEC_UNCHECKED = 1; 81 public int SEC_EXCLUDED = 2; 82 public int SEC_CHECKED = 3; 83 84 public String [] secAttrStrings = { "SEC_NOT_INITIALIZED", 85 "SEC_UNCHECKED", 86 "SEC_EXCLUDED", 87 "SEC_CHECKED" }; 88 89 90 91 97 Remote getTargetObject(byte[] instanceKey, String remoteBusinessIntf); 98 99 103 void releaseTargetObject(Remote remoteObj); 104 105 109 public void externalPreInvoke(); 110 111 115 public void externalPostInvoke(); 116 117 121 EJBObject getEJBObjectForPrimaryKey(Object pkey); 122 123 127 EJBLocalObject getEJBLocalObjectForPrimaryKey(Object pkey, EJBContext ctx); 128 EJBLocalObject getEJBLocalObjectForPrimaryKey(Object pkey); 129 130 139 void assertValidLocalObject(Object o) throws EJBException; 140 141 150 void assertValidRemoteObject(Object o) throws EJBException; 151 152 155 void removeBeanUnchecked(EJBLocalObject bean); 156 157 160 void removeBeanUnchecked(Object pkey); 161 162 176 void preSelect() throws javax.ejb.EJBException ; 177 178 179 183 void preInvoke(Invocation inv); 184 185 189 void postInvoke(Invocation inv); 190 191 197 void postCreate(Invocation inv, Object primaryKey) 198 throws CreateException; 199 200 207 Object postFind(Invocation inv, Object primaryKeys, Object [] findParams) 208 throws FinderException; 209 210 214 EjbDescriptor getEjbDescriptor(); 215 216 219 EJBMetaData getEJBMetaData(); 220 221 224 ClassLoader getClassLoader(); 225 226 229 EJBHome getEJBHome(); 230 231 234 com.sun.enterprise.SecurityManager getSecurityManager(); 235 236 242 boolean userTransactionMethodsAllowed(ComponentInvocation inv); 243 244 247 void doAfterBegin(ComponentInvocation ci); 248 249 250 256 void doAfterApplicationDeploy(); 257 258 261 void undeploy(); 262 263 266 void onReady(); 267 268 271 void onShutdown(); 272 273 277 void onTermination(); 278 279 282 String getComponentId(); 283 284 288 void setStartedState(); 289 290 295 void setStoppedState(); 296 297 303 void setUndeployedState(); 304 305 312 Object getJaccEjb(Invocation inv); 313 314 317 boolean authorize(Invocation inv); 318 319 320 } 321 | Popular Tags |