public String getCurrentSourceBeanName() { return getState(false).getProperty(SwitchableApplicationContextFactory.SOURCE_BEAN_PROPERTY); }
/** * Applies default overrides to the initial state. * * @param state * the state * @throws IOException * Signals that an I/O exception has occurred. */ protected void applyDefaultOverrides(PropertyBackedBeanState state) throws IOException { for (String name : state.getPropertyNames()) { String override = resolveDefault(name); if (override != null) { state.setProperty(name, override); } } }
String previousValue = state.getProperty(property); this.state.removeProperty(property); previousValues.put(property, previousValue); this.state.setProperty(entry.getKey(), entry.getValue());
String previousValue = this.state.getProperty(property); this.state.setProperty(property, entry.getValue()); previousValues.put(property, previousValue); this.state.setProperty(entry.getKey(), entry.getValue());
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 Set<String> getPropertyNames() { this.lock.readLock().lock(); try { doInit(); return this.state.getPropertyNames(); } finally { this.lock.readLock().unlock(); } }
this.state.stop(); this.runtimeState = RuntimeState.STOPPED;
this.state.start(); this.runtimeState = broadcastLater ? RuntimeState.PENDING_BROADCAST_START : RuntimeState.STARTED;
String previousValue = state.getProperty(property); this.state.removeProperty(property); previousValues.put(property, previousValue); this.state.setProperty(entry.getKey(), entry.getValue());
String previousValue = this.state.getProperty(property); this.state.setProperty(property, entry.getValue()); previousValues.put(property, previousValue); this.state.setProperty(entry.getKey(), entry.getValue());
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 Set<String> getPropertyNames() { this.lock.readLock().lock(); try { doInit(); return this.state.getPropertyNames(); } finally { this.lock.readLock().unlock(); } }
this.state.stop(); this.runtimeState = RuntimeState.STOPPED;
this.state.start(); this.runtimeState = broadcastLater ? RuntimeState.PENDING_BROADCAST_START : RuntimeState.STARTED;
/** * Applies default overrides to the initial state. * * @param state * the state * @throws IOException * Signals that an I/O exception has occurred. */ protected void applyDefaultOverrides(PropertyBackedBeanState state) throws IOException { for (String name : state.getPropertyNames()) { String override = resolveDefault(name); if (override != null) { state.setProperty(name, override); } } }
public String getCurrentSourceBeanName() { return getState(false).getProperty(SwitchableApplicationContextFactory.SOURCE_BEAN_PROPERTY); }
/** * {@inheritDoc} */ public String getProperty(String name) { this.lock.readLock().lock(); try { doInit(); return this.state.getProperty(name); } 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(); } }