1 7 8 10 package org.jboss.net.axis; 11 12 import javax.naming.Reference ; 13 import javax.naming.Referenceable ; 14 import javax.naming.StringRefAddr ; 15 16 29 30 public class AttacheableService implements Referenceable 31 { 32 33 37 41 42 protected String serviceClass; 43 44 47 protected String rootContext; 48 49 53 57 58 public AttacheableService(String serviceClass, String rootContext) 59 { 60 this.serviceClass = serviceClass; 61 this.rootContext = rootContext; 62 } 63 64 68 public Reference getReference() 69 { 70 Reference myRef = 71 new Reference (serviceClass, ServiceFactory.class.getName(), null); 72 myRef.add(new StringRefAddr (Constants.CONFIGURATION_CONTEXT, rootContext)); 73 return myRef; 74 } 75 76 } 77 | Popular Tags |