@Test public void testGlobal() { assertSame(BackgroundActionRegistry.global(), BackgroundActionRegistry.global()); }
public static BackgroundActionRegistry global() { synchronized(lock) { if(null == global) { global = new BackgroundActionRegistry(); } return global; } }
BackgroundActionRegistry extends Collection<BackgroundAction> implements BackgroundActionListener { public static BackgroundActionRegistry global() { synchronized(lock) { if(null == global) { global = new BackgroundActionRegistry(); } return global; } } }
BackgroundActionRegistry extends Collection<BackgroundAction> implements BackgroundActionListener { public static BackgroundActionRegistry global() { synchronized(lock) { if(null == global) { global = new BackgroundActionRegistry(); } return global; } } BackgroundActionRegistry(); }
BackgroundActionRegistry extends Collection<BackgroundAction> implements BackgroundActionListener { public static BackgroundActionRegistry global() { synchronized(lock) { if(null == global) { global = new BackgroundActionRegistry(); } return global; } } BackgroundActionRegistry(); static BackgroundActionRegistry global(); synchronized BackgroundAction getCurrent(); @Override synchronized void start(final BackgroundAction action); @Override synchronized void stop(final BackgroundAction action); @Override synchronized void cancel(final BackgroundAction action); @Override synchronized boolean add(final BackgroundAction action); @Override synchronized boolean remove(final Object action); @Override boolean equals(final Object o); @Override int hashCode(); }
BackgroundActionRegistry extends Collection<BackgroundAction> implements BackgroundActionListener { public static BackgroundActionRegistry global() { synchronized(lock) { if(null == global) { global = new BackgroundActionRegistry(); } return global; } } BackgroundActionRegistry(); static BackgroundActionRegistry global(); synchronized BackgroundAction getCurrent(); @Override synchronized void start(final BackgroundAction action); @Override synchronized void stop(final BackgroundAction action); @Override synchronized void cancel(final BackgroundAction action); @Override synchronized boolean add(final BackgroundAction action); @Override synchronized boolean remove(final Object action); @Override boolean equals(final Object o); @Override int hashCode();  }