1 45 46 47 package org.openejb; 48 49 63 public class ProxyInfo { 64 65 protected DeploymentInfo deploymentInfo; 66 protected Object primaryKey; 67 protected Class type; 68 protected RpcContainer beanContainer; 69 70 73 protected ProxyInfo(){} 74 75 85 public ProxyInfo(DeploymentInfo depInfo, Object pk, Class intrfc, RpcContainer cntnr){ 86 deploymentInfo = depInfo; 87 primaryKey = pk; 88 type = intrfc; 89 beanContainer = cntnr; 90 } 91 92 public ProxyInfo(DeploymentInfo depInfo, Object pk, boolean isLocalInterface, RpcContainer cntnr){ 93 this.deploymentInfo = depInfo; 94 this.primaryKey = pk; 95 this.beanContainer = cntnr; 96 if (isLocalInterface){ 97 this.type = deploymentInfo.getLocalInterface(); 98 } else { 99 this.type = deploymentInfo.getRemoteInterface(); 100 } 101 } 102 108 public DeploymentInfo getDeploymentInfo() { return deploymentInfo; } 109 110 115 public Object getPrimaryKey() { return primaryKey; } 116 117 122 public Class getInterface() { return type; } 123 124 130 public RpcContainer getBeanContainer() { return beanContainer; } 131 } 132 | Popular Tags |