1 28 package org.objectweb.carol.jtests.conform.basic.server; 29 30 import java.io.Serializable ; 31 32 import javax.naming.Reference ; 33 import javax.naming.Referenceable ; 34 import javax.naming.StringRefAddr ; 35 36 41 public class BasicObjectRef implements Referenceable , Serializable { 42 43 46 private String content = "string"; 47 48 52 public BasicObjectRef(String content) { 53 this.content = content; 54 } 55 56 59 public Reference getReference() { 60 return new Reference (BasicObjectRef.class.getName(), new StringRefAddr ("content", "string2"), 61 BasicObjectRefFactory.class.getName(), null); 62 } 63 64 68 public String toString() { 69 return content; 70 } 71 72 } | Popular Tags |