1 25 26 package org.objectweb.easybeans.rpc; 27 28 import javax.naming.NamingException ; 29 import javax.naming.Reference ; 30 import javax.naming.StringRefAddr ; 31 32 37 public class LocalCallRef extends AbsCallRef { 38 39 42 public static final String EMBEDDED_ID = "embeddedID"; 43 44 47 private Integer embeddedID = null; 48 49 50 59 public LocalCallRef(final String itfClassName, final Integer embeddedID, final String containerId, 60 final String factoryName, final boolean useID) { 61 super(itfClassName, containerId, factoryName, useID); 62 this.embeddedID = embeddedID; 63 } 64 65 71 @Override 72 public Reference getReference() throws NamingException { 73 74 Reference reference = new Reference (getItfClassName(), LocalCallFactory.class.getName(), null); 76 reference.add(new StringRefAddr (EMBEDDED_ID, embeddedID.toString())); 77 return updateRefAddr(reference); 78 79 } 80 81 } 82 | Popular Tags |