/** Detaches all listeners from the bean and destroys it. * @throws IOException if there was a problem */ @Override public void destroy() throws IOException { if (removePCLMethod != null) { try { Object o = Beans.getInstanceOf(bean, removePCLMethod.getDeclaringClass()); removePCLMethod.invoke(o, new Object[] { propertyChangeListener }); } catch (Exception e) { NodeOp.exception(e); } } super.destroy(); }
@Override public void destroy() throws IOException { //Ensure anything polling isn't kept alive by someone //keeping a reference to a dead node hardRef = null; super.destroy(); }
@Override public void destroy() throws IOException { timer.stop(); super.destroy(); }
public void destroy() throws IOException { super.destroy(); if (repoload != null) { repoload.cancel(); } }
/** Detaches all listeners from the bean and destroys it. * @throws IOException if there was a problem */ public void destroy () throws IOException { if (removePCLMethod != null) { try { Object o = Beans.getInstanceOf (bean, removePCLMethod.getDeclaringClass ()); removePCLMethod.invoke (o, new Object[] {propertyChangeListener}); } catch (Exception e) { NodeOp.exception (e); } } super.destroy (); }
/** Detaches all listeners from the bean and destroys it. * @throws IOException if there was a problem */ public void destroy () throws IOException { if (removePCLMethod != null) { try { Object o = Beans.getInstanceOf (bean, removePCLMethod.getDeclaringClass ()); removePCLMethod.invoke (o, new Object[] {propertyChangeListener}); } catch (Exception e) { NodeOp.exception (e); } } super.destroy (); }
public void destroy () throws IOException { if (obj.isDeleteAllowed ()) { obj.delete (); } super.destroy (); }
@Override public void destroy() throws IOException { RepositoryPreferences.getInstance().removeRepositoryInfo(info); super.destroy(); }
@Override public void destroy() throws IOException { RepositoryPreferences.getInstance().removeRepositoryInfo(info); super.destroy(); }