1 package org.openejb.core.ivm.naming; 2 3 import javax.naming.NamingException; 4 5 /** 6 * This class is used when the object to be reference is available at the time 7 * the reference is created. 8 */ 9 public class ObjectReference implements Reference{ 10 11 private Object obj; 12 13 public ObjectReference(Object obj){ 14 this.obj = obj; 15 } 16 17 public Object getObject( ) throws NamingException{ 18 return obj; 19 } 20 } 21