@Test public void testCreateAuditor_SingleProvider_AssertCreatedAuditor() throws Exception { LoggingAuditorProvider proviver = new LoggingAuditorProvider(); Auditor auditor = AuditorFactory.createAuditor(proviver); assertNotNull(auditor); assertTrue(auditor instanceof LoggingAuditor); }
public static synchronized Auditor createAuditor() { final SPIAuditorProvider spiProv = new SPIAuditorProvider(); final Provider<Auditor> provider = spiProv.isImplementationAvailable() ? spiProv : new LoggingAuditorProvider(); return createAuditor(provider); }
AuditorFactory { public static synchronized Auditor createAuditor() { final SPIAuditorProvider spiProv = new SPIAuditorProvider(); final Provider<Auditor> provider = spiProv.isImplementationAvailable() ? spiProv : new LoggingAuditorProvider(); return createAuditor(provider); } }
AuditorFactory { public static synchronized Auditor createAuditor() { final SPIAuditorProvider spiProv = new SPIAuditorProvider(); final Provider<Auditor> provider = spiProv.isImplementationAvailable() ? spiProv : new LoggingAuditorProvider(); return createAuditor(provider); }  }
AuditorFactory { public static synchronized Auditor createAuditor() { final SPIAuditorProvider spiProv = new SPIAuditorProvider(); final Provider<Auditor> provider = spiProv.isImplementationAvailable() ? spiProv : new LoggingAuditorProvider(); return createAuditor(provider); }  static synchronized Auditor createAuditor(); static synchronized Auditor createAuditor(Provider<Auditor> provider); static synchronized Auditor createAuditor(Collection<Module> modules); }
AuditorFactory { public static synchronized Auditor createAuditor() { final SPIAuditorProvider spiProv = new SPIAuditorProvider(); final Provider<Auditor> provider = spiProv.isImplementationAvailable() ? spiProv : new LoggingAuditorProvider(); return createAuditor(provider); }  static synchronized Auditor createAuditor(); static synchronized Auditor createAuditor(Provider<Auditor> provider); static synchronized Auditor createAuditor(Collection<Module> modules);  }