1 17 18 19 package org.apache.catalina; 20 21 import org.apache.catalina.core.StandardServer; 22 23 24 34 35 public class ServerFactory { 36 37 38 40 41 44 private static Server server = null; 45 46 47 49 50 53 public static Server getServer() { 54 if( server==null ) 55 server=new StandardServer(); 56 return (server); 57 58 } 59 60 61 69 public static void setServer(Server theServer) { 70 71 if (server == null) 72 server = theServer; 73 74 } 75 76 77 } 78 | Popular Tags |