/** Set the node name. * Also may attempt to change the name of the bean, * according to {@link #setSynchronizeName}. * @param s the new name */ @Override public void setName(String s) { if (synchronizeName) { Method m = nameSetter; if (m != null) { try { m.invoke(bean, new Object[] { s }); } catch (Exception e) { NodeOp.exception(e); } } } super.setName(s); }
/** 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(); }
/** Set the node name. * Also may attempt to change the name of the bean, * according to {@link #setSynchronizeName}. * @param s the new name */ public void setName (String s) { if (synchronizeName) { Method m = nameSetter; if (m != null) { try { m.invoke (bean, new Object[] {s}); } catch (Exception e) { NodeOp.exception (e); } } } super.setName (s); }
/** Set the node name. * Also may attempt to change the name of the bean, * according to {@link #setSynchronizeName}. * @param s the new name */ public void setName (String s) { if (synchronizeName) { Method m = nameSetter; if (m != null) { try { m.invoke (bean, new Object[] {s}); } catch (Exception e) { NodeOp.exception (e); } } } super.setName (s); }
/** 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 (); }