1 45 package org.openejb.core.ivm; 46 47 import org.openejb.util.proxy.ProxyManager; 48 49 72 public class SpecialProxyInfo extends org.openejb.ProxyInfo { 73 74 protected Object proxy; 75 76 public SpecialProxyInfo(Object proxy){ 77 super(); 78 79 this.proxy = proxy; 80 81 BaseEjbProxyHandler handler = (BaseEjbProxyHandler)ProxyManager.getInvocationHandler( proxy ); 82 83 deploymentInfo = handler.deploymentInfo; 84 primaryKey = handler.primaryKey; 85 beanContainer = handler.container; 86 87 if(handler instanceof EjbHomeProxyHandler) 88 type = deploymentInfo.getHomeInterface(); 89 else 90 type = deploymentInfo.getRemoteInterface(); 91 92 } 93 94 public Object getProxy(){ 95 return proxy; 96 } 97 } 98 99 | Popular Tags |