1 package org.enhydra.spi.conf; 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 ConfFileRegistry implements NameService { 11 12 15 public int port=0; 16 17 public String host = "nohost"; 18 19 23 public void start() throws NameServiceException { 24 if (TraceCarol.isDebugJndiCarol()) { 25 TraceCarol.debugJndiCarol("ConfFileRegistry.start() on port:" + port); 26 } 27 } 29 30 34 public void stop() throws NameServiceException { 35 if (TraceCarol.isDebugJndiCarol()) { 36 TraceCarol.debugJndiCarol("ConfFileRegistry.stop()"); 37 } 38 } 40 41 45 public boolean isStarted() { 46 return true; 47 } 48 49 53 public void setPort(int p) { 54 } 55 56 59 public int getPort() { 60 return 0; 61 } 62 63 public void setConfigProperties(java.util.Properties props){ 64 65 } 66 67 public void setHost(String s){ 68 host = s; 69 }; 70 71 public String getHost(){ 72 return host; 73 }; 74 } 75 | Popular Tags |