/** * Returns a singleton manager in a lazy (but thread-safe) manner. * * @return the <code>FixtureManager</code> instance. */ public static FixtureManager getInstance() { // Employ a "double-checked locking" strategy because a lock is only // needed upon initialization; synchronize on the monitor belonging to // the class itself. if (null == manager) { synchronized (FixtureManager.class) { // check again, because the thread might have been preempted // just after the outer if was processed but before the // synchronized statement was executed if (manager == null) { manager = new FixtureManager(); } } } return manager; }
@Override public Source doTestRun(Document testRunArgs) throws Exception { validateTestRunArgs(testRunArgs); return executor.execute(testRunArgs); }
@Override public Source doTestRun(Document testRunArgs) throws Exception { validateTestRunArgs(testRunArgs); return executor.execute(testRunArgs); }
@Override public Source doTestRun(Document testRunArgs) throws Exception { validateTestRunArgs(testRunArgs); return executor.execute(testRunArgs); }
@Override public Source doTestRun(Document testRunArgs) throws Exception { validateTestRunArgs(testRunArgs); return executor.execute(testRunArgs); }