@Test public void testLookup_Object_boolean() { String id = "id"; assert factory.lookup(id, false) == null; Broadcaster b = factory.lookup(id, true); assert b != null; assert id.equals(b.getID()); }
@Override public <T extends Broadcaster> T lookup(Class<T> c, Object id) { return lookup(c, id, false); }
DefaultBroadcasterFactory implements BroadcasterFactory { @Override public <T extends Broadcaster> T lookup(Class<T> c, Object id) { return lookup(c, id, false); } }
DefaultBroadcasterFactory implements BroadcasterFactory { @Override public <T extends Broadcaster> T lookup(Class<T> c, Object id) { return lookup(c, id, false); } DefaultBroadcasterFactory(); @Deprecated  DefaultBroadcasterFactory(Class<? extends Broadcaster> clazz, String broadcasterLifeCyclePolicy, AtmosphereConfig c); }
DefaultBroadcasterFactory implements BroadcasterFactory { @Override public <T extends Broadcaster> T lookup(Class<T> c, Object id) { return lookup(c, id, false); } DefaultBroadcasterFactory(); @Deprecated  DefaultBroadcasterFactory(Class<? extends Broadcaster> clazz, String broadcasterLifeCyclePolicy, AtmosphereConfig c); void configure(Class<? extends Broadcaster> clazz, String broadcasterLifeCyclePolicy, AtmosphereConfig c); @Override synchronized Broadcaster get(); @Override Broadcaster get(Object id); @Override T get(Class<T> c, Object id); @Override boolean add(Broadcaster b, Object id); @Override boolean remove(Broadcaster b, Object id); @Override T lookup(Class<T> c, Object id); @Override Broadcaster lookup(Object id); @Override Broadcaster lookup(Object id, boolean createIfNull); @Override T lookup(Class<T> c, Object id, boolean createIfNull); T lookup(Class<T> c, Object id, boolean createIfNull, boolean unique); @Deprecated @Override void removeAllAtmosphereResource(AtmosphereResource r); @Override boolean remove(Object id); @Override Collection<Broadcaster> lookupAll(); @Override synchronized void destroy(); void notifyOnPostCreate(Broadcaster b); @Override BroadcasterFactory addBroadcasterListener(BroadcasterListener l); @Override BroadcasterFactory removeBroadcasterListener(BroadcasterListener l); @Override Collection<BroadcasterListener> broadcasterListeners(); }
DefaultBroadcasterFactory implements BroadcasterFactory { @Override public <T extends Broadcaster> T lookup(Class<T> c, Object id) { return lookup(c, id, false); } DefaultBroadcasterFactory(); @Deprecated  DefaultBroadcasterFactory(Class<? extends Broadcaster> clazz, String broadcasterLifeCyclePolicy, AtmosphereConfig c); void configure(Class<? extends Broadcaster> clazz, String broadcasterLifeCyclePolicy, AtmosphereConfig c); @Override synchronized Broadcaster get(); @Override Broadcaster get(Object id); @Override T get(Class<T> c, Object id); @Override boolean add(Broadcaster b, Object id); @Override boolean remove(Broadcaster b, Object id); @Override T lookup(Class<T> c, Object id); @Override Broadcaster lookup(Object id); @Override Broadcaster lookup(Object id, boolean createIfNull); @Override T lookup(Class<T> c, Object id, boolean createIfNull); T lookup(Class<T> c, Object id, boolean createIfNull, boolean unique); @Deprecated @Override void removeAllAtmosphereResource(AtmosphereResource r); @Override boolean remove(Object id); @Override Collection<Broadcaster> lookupAll(); @Override synchronized void destroy(); void notifyOnPostCreate(Broadcaster b); @Override BroadcasterFactory addBroadcasterListener(BroadcasterListener l); @Override BroadcasterFactory removeBroadcasterListener(BroadcasterListener l); @Override Collection<BroadcasterListener> broadcasterListeners(); static final URI legacyBroadcasterURI; }