1 29 package net.sourceforge.groboutils.pmti.v1.autodoc.v1; 30 31 32 import net.sourceforge.groboutils.autodoc.v1.AutoDocIT; 33 import net.sourceforge.groboutils.autodoc.v1.spi.AutoDocITFactory; 34 35 import net.sourceforge.groboutils.autodoc.v1.testserver.MonitorFinder; 36 37 38 46 public class AutoDocITFactoryImpl implements AutoDocITFactory 47 { 48 private MonitorFinder finder; 49 50 51 52 55 public AutoDocITFactoryImpl() 56 { 57 } 59 60 61 64 public AutoDocIT createIT( Class owner ) 65 { 66 return new AutoDocITImpl( owner, getFinder() ); 67 } 68 69 70 public synchronized void setFinder( MonitorFinder finder ) 71 { 72 this.finder = finder; 73 } 74 75 76 public synchronized MonitorFinder getFinder() 77 { 78 if (this.finder == null) 79 { 80 setFinder( new ITFMonitorFinder() ); 81 } 82 return this.finder; 83 } 84 } 85 86 | Popular Tags |