@Override protected void close(ExecutionContext ctx) throws Exception { stream.close(); }
@Override public void close() throws ItemStreamException { super.close(); holder.set(null); if (streamsRegistered) { stream.close(); } }
public void testClose() { manager.register(new ItemStreamSupport() { @Override public void close() { super.close(); list.add("bar"); } }); manager.close(); assertEquals(1, list.size()); }
public void testCloseDoesNotUnregister() { manager.setStreams(new ItemStream[] { new ItemStreamSupport() { @Override public void open(ExecutionContext executionContext) { super.open(executionContext); list.add("bar"); } } }); manager.open(null); manager.close(); manager.open(null); assertEquals(2, list.size()); }
@Override protected void close(ExecutionContext ctx) throws Exception { stream.close(); }
protected void close(ExecutionContext ctx) throws Exception { stream.close(); }
@Override protected void close(ExecutionContext ctx) throws Exception { stream.close(); }
@Override protected void close(ExecutionContext ctx) throws Exception { stream.close(); }
public void close() throws ItemStreamException { holder.set(null); if (streamsRegistered) { stream.close(); } }
@Override public void close() throws ItemStreamException { super.close(); holder.set(null); if (streamsRegistered) { stream.close(); } }
@Override public void close() throws ItemStreamException { super.close(); holder.set(null); if (streamsRegistered) { stream.close(); } }
@Override public void close() throws ItemStreamException { super.close(); holder.set(null); if (streamsRegistered) { stream.close(); } }