1 package org.enhydra.spi.webxml; 2 3 import org.objectweb.carol.util.configuration.*; 4 import org.objectweb.carol.jndi.ns.NameService; 5 import org.objectweb.carol.jndi.ns.NameServiceException; 6 7 10 public class WebXmlRegistry implements NameService { 11 12 15 public int port = 0; 16 17 public String host = "nohost"; 18 19 24 public void start() throws NameServiceException { 25 if (TraceCarol.isDebugJndiCarol()) { 26 TraceCarol.debugJndiCarol("WebXmlRegistry.start() on port:" + port); 27 } 28 } 30 31 35 public void stop() throws NameServiceException { 36 if (TraceCarol.isDebugJndiCarol()) { 37 TraceCarol.debugJndiCarol("WebXmlRegistry.stop()"); 38 } 39 } 41 42 46 public boolean isStarted() { 47 return true; 48 } 49 50 54 public void setPort (int p) { 55 } 56 57 60 public int getPort() { 61 return 0; 62 } 63 64 public void setConfigProperties(java.util.Properties props){ 65 66 } 67 68 public void setHost(String s){ 69 host = s; 70 }; 71 72 public String getHost(){ 73 return host; 74 }; 75 76 77 } 78 | Popular Tags |