1 29 package net.sourceforge.groboutils.pmti.v1.autodoc.v1; 30 31 32 import net.sourceforge.groboutils.autodoc.v1.testserver.Monitor; 33 import net.sourceforge.groboutils.autodoc.v1.testserver.DefaultMonitor; 34 import net.sourceforge.groboutils.autodoc.v1.testserver.Server; 35 import net.sourceforge.groboutils.autodoc.v1.testserver.TestDataFactory; 36 37 import net.sourceforge.groboutils.util.classes.v1.SingletonStore; 38 39 40 51 public class ITFMonitor extends DefaultMonitor { 53 public static final String FACTORY_PROPERTY_NAME = 54 ITFFactory.class.getName() + ".implementation"; 55 public static final Class DEFAULT_FACTORY = DefaultITFFactory.class; 56 57 private static final SingletonStore s_factoryStore = new SingletonStore( 58 ITFFactory.class, DEFAULT_FACTORY, FACTORY_PROPERTY_NAME ); 59 60 61 62 65 public ITFMonitor() 66 { 67 this( getFactory().getServer(), getFactory().getTestDataFactory() ); 68 } 69 70 71 84 public ITFMonitor( Server s, TestDataFactory f ) 85 { 86 super( s, f ); 87 } 88 89 90 91 92 93 96 public static ITFFactory getFactory() 97 { 98 return (ITFFactory)getFactoryStore().getSingleton(); 99 } 100 101 102 105 public static SingletonStore getFactoryStore() 106 { 107 return s_factoryStore; 108 } 109 } 110 111 | Popular Tags |