1 2 24 25 package com.sun.ejb; 26 27 import java.lang.reflect.Method ; 28 29 import com.sun.enterprise.deployment.EjbRemovalInfo; 30 import com.sun.enterprise.security.CachedPermission; 31 32 43 44 public class InvocationInfo { 45 46 public String ejbName; 47 public Method method; 48 public String methodIntf; 49 50 51 public int txAttr; 52 public int securityPermissions; 53 public CachedPermission cachedPermission; 54 55 public boolean isBusinessMethod; 56 public boolean isHomeFinder; 57 public boolean isCreateHomeFinder; 58 public boolean startsWithCreate; 59 public boolean startsWithFind; 60 public boolean startsWithRemove; 61 public boolean startsWithFindByPrimaryKey; 62 63 public Method targetMethod1; 66 public Method targetMethod2; 67 public boolean ejbIntfOverride; 68 69 public boolean flushEnabled; 70 public boolean checkpointEnabled; 71 72 public Invocation.InterceptorChain interceptorChain; 73 74 public EjbRemovalInfo removalInfo; 76 77 public InvocationInfo(Method method) { 78 this.method = method; 79 } 80 81 public String toString() { 82 StringBuffer sb = new StringBuffer (); 83 sb.append("Invocation Info for ejb " + ejbName + "\t"); 84 sb.append("method = " + method + "\t"); 85 sb.append("methodIntf = " + methodIntf + "\t"); 86 sb.append("tx attr = " + Container.txAttrStrings[txAttr] + "\t"); 87 sb.append("Cached permission = " + cachedPermission + "\t"); 88 sb.append("target method 1 = " + targetMethod1 + "\t"); 89 sb.append("target method 2 = " + targetMethod2 + "\t"); 90 sb.append("ejbIntfOverride = " + ejbIntfOverride + "\t"); 91 sb.append("flushenabled = " + flushEnabled + "\t"); 92 sb.append("checkpointenabled = " + checkpointEnabled + "\t"); 93 sb.append("removalInfo = " + removalInfo + "\t"); 94 sb.append("\n"); 95 return sb.toString(); 96 } 97 } 98 | Popular Tags |