/** * Register a single {@link ItemStream} for callbacks to the stream * interface. * * @param stream instance of {@link ItemStream} */ public void registerStream(ItemStream stream) { this.stream.register(stream); }
/** * @param stream the stream to set */ public void registerItemStream(ItemStream stream) { streamsRegistered = true; this.stream.register(stream); }
public void testRegisterTwice() { ItemStreamSupport stream = new ItemStreamSupport() { @Override public void open(ExecutionContext executionContext) { super.open(executionContext); list.add("bar"); } }; manager.register(stream); manager.register(stream); manager.open(null); assertEquals(1, list.size()); }
public void testClose() { manager.register(new ItemStreamSupport() { @Override public void close() { super.close(); list.add("bar"); } }); manager.close(); assertEquals(1, list.size()); }
public void testMark() { manager.register(new ItemStreamSupport() { @Override public void update(ExecutionContext executionContext) { super.update(executionContext); list.add("bar"); } }); manager.update(null); assertEquals(1, list.size()); }
public void testRegisterAndOpen() { ItemStreamSupport stream = new ItemStreamSupport() { @Override public void open(ExecutionContext executionContext) { super.open(executionContext); list.add("bar"); } }; manager.register(stream); manager.open(null); assertEquals(1, list.size()); }
/** * Register a single {@link ItemStream} for callbacks to the stream * interface. * * @param stream instance of {@link ItemStream} */ public void registerStream(ItemStream stream) { this.stream.register(stream); }
/** * Register a single {@link ItemStream} for callbacks to the stream * interface. * * @param stream instance of {@link ItemStream} */ public void registerStream(ItemStream stream) { this.stream.register(stream); }
/** * @param stream the stream to set */ public void registerItemStream(ItemStream stream) { streamsRegistered = true; this.stream.register(stream); }
/** * Register a single {@link ItemStream} for callbacks to the stream * interface. * * @param stream */ public void registerStream(ItemStream stream) { this.stream.register(stream); }
/** * @param stream the stream to set */ public void registerItemStream(ItemStream stream) { streamsRegistered = true; this.stream.register(stream); }
/** * @param stream the stream to set */ public void registerItemStream(ItemStream stream) { streamsRegistered = true; this.stream.register(stream); }
/** * @param stream the stream to set */ public void registerItemStream(ItemStream stream) { streamsRegistered = true; this.stream.register(stream); }
/** * Register a single {@link ItemStream} for callbacks to the stream * interface. * * @param stream */ public void registerStream(ItemStream stream) { this.stream.register(stream); }