/** * Closes all closeable values and plugins. */ public final void close() { ProductDerivations.beforeClose(this); preClose(); ObjectValue val; for (int i = 0; i < _vals.size(); i++) { if (_vals.get(i) instanceof Closeable) { try { ((Closeable) _vals.get(i)).close(); } catch (Exception e) {} continue; } if (!(_vals.get(i) instanceof ObjectValue)) continue; val = (ObjectValue) _vals.get(i); if (val.get() instanceof Closeable) { try { ((Closeable) val.get()).close(); } catch (Exception e) { } } } }
/** * Closes all closeable values and plugins. */ public final void close() { ProductDerivations.beforeClose(this); preClose(); ObjectValue val; for(Value v : _vals) { if (v instanceof Closeable) { try { ((Closeable)v).close(); } catch (Exception e) {} continue; } if (!(v instanceof ObjectValue)) continue; val = (ObjectValue) v; if (val.get() instanceof Closeable) { try { ((Closeable) val.get()).close(); } catch (Exception e) { } } } }
ProductDerivations.beforeClose(this);
ProductDerivations.beforeClose(this);