1 package org.apache.turbine.services; 2 3 18 19 31 public class TurbineServices 32 extends BaseServiceBroker 33 implements ServiceManager 34 { 35 36 private static ServiceManager instance = new TurbineServices(); 37 38 42 protected TurbineServices() 43 { 44 super(); 45 } 46 47 52 public static ServiceManager getInstance() 53 { 54 return instance; 55 } 56 57 62 public static synchronized void setManager(ServiceManager manager) 63 { 64 ServiceManager previous = instance; 65 instance = manager; 66 if (previous != null) 67 { 68 previous.shutdownServices(); 69 } 70 } 71 } 72 | Popular Tags |