1 23 24 25 package com.sun.enterprise.webservice.monitoring; 26 27 32 public class WebServiceEngineFactory { 33 34 private static WebServiceEngineFactory factory = null; 35 36 private WebServiceEngine engine = null; 37 38 39 protected WebServiceEngineFactory() { 40 } 41 42 45 public static WebServiceEngineFactory getInstance() { 46 if (factory==null) { 47 synchronized(WebServiceEngineFactory.class) { 48 if (factory==null) { 49 factory = new WebServiceEngineFactory(); 50 } 51 } 52 } 53 return factory; 54 } 55 56 59 public WebServiceEngine getEngine() { 60 return engine; 61 } 62 63 66 void setEngine(WebServiceEngine engine) { 67 this.engine = engine; 68 } 69 } 70 | Popular Tags |