/** * Initializes or resets the bean and its state. */ public final void init() { this.lock.writeLock().lock(); try { doInit(); } finally { this.lock.writeLock().unlock(); } }
/** * Initializes or resets the bean and its state. */ public final void init() { this.lock.writeLock().lock(); try { doInit(); } finally { this.lock.writeLock().unlock(); } }
/** * {@inheritDoc} */ public String getProperty(String name) { this.lock.readLock().lock(); try { doInit(); return this.state.getProperty(name); } finally { this.lock.readLock().unlock(); } }
/** * {@inheritDoc} */ public Set<String> getPropertyNames() { this.lock.readLock().lock(); try { doInit(); return this.state.getPropertyNames(); } finally { this.lock.readLock().unlock(); } }
/** * {@inheritDoc} */ public String getProperty(String name) { this.lock.readLock().lock(); try { doInit(); return this.state.getProperty(name); } finally { this.lock.readLock().unlock(); } }
/** * {@inheritDoc} */ public Set<String> getPropertyNames() { this.lock.readLock().lock(); try { doInit(); return this.state.getPropertyNames(); } finally { this.lock.readLock().unlock(); } }
/** * {@inheritDoc} */ public final void revert() { this.lock.writeLock().lock(); try { stop(true); destroy(true); doInit(); } finally { this.lock.writeLock().unlock(); } }
private void setPropertyInternal(String name, String value) { // Bring down the bean. The caller may have already broadcast this across the cluster stop(false); doInit(); this.state.setProperty(name, value); }
/** * {@inheritDoc} */ public final void revert() { this.lock.writeLock().lock(); try { stop(true); destroy(true); doInit(); } finally { this.lock.writeLock().unlock(); } }
private void setPropertyInternal(String name, String value) { // Bring down the bean. The caller may have already broadcast this across the cluster stop(false); doInit(); this.state.setProperty(name, value); }