@Test public void testLock() { assertNull(SleepPreventerFactory.get().lock()); }
public static SleepPreventer get() { if(!PreferencesFactory.get().getBoolean("queue.sleep.prevent")) { return new DisabledSleepPreventer(); } return new SleepPreventerFactory().create(); }
SleepPreventerFactory extends Factory<SleepPreventer> { public static SleepPreventer get() { if(!PreferencesFactory.get().getBoolean("queue.sleep.prevent")) { return new DisabledSleepPreventer(); } return new SleepPreventerFactory().create(); } }
SleepPreventerFactory extends Factory<SleepPreventer> { public static SleepPreventer get() { if(!PreferencesFactory.get().getBoolean("queue.sleep.prevent")) { return new DisabledSleepPreventer(); } return new SleepPreventerFactory().create(); } protected  SleepPreventerFactory(); }
SleepPreventerFactory extends Factory<SleepPreventer> { public static SleepPreventer get() { if(!PreferencesFactory.get().getBoolean("queue.sleep.prevent")) { return new DisabledSleepPreventer(); } return new SleepPreventerFactory().create(); } protected  SleepPreventerFactory(); static SleepPreventer get(); }
SleepPreventerFactory extends Factory<SleepPreventer> { public static SleepPreventer get() { if(!PreferencesFactory.get().getBoolean("queue.sleep.prevent")) { return new DisabledSleepPreventer(); } return new SleepPreventerFactory().create(); } protected  SleepPreventerFactory(); static SleepPreventer get();  }