state.destroy(permanent);
if (false == isUpdateable(name) && ((ApplicationContextState) getState(false)).getApplicationContext(false) != null)
public void setProperty(String name, String value) { if (name.equals(ChildApplicationContextFactory.TYPE_NAME_PROPERTY)) { throw new IllegalStateException("Illegal write to property \"" + ChildApplicationContextFactory.TYPE_NAME_PROPERTY + "\""); } if (name.equals(ChildApplicationContextFactory.INSTANCE_PATH_PROPERTY)) { throw new IllegalStateException("Illegal write to property \"" + ChildApplicationContextFactory.INSTANCE_PATH_PROPERTY + "\""); } this.lastStartupError = null; Class<?> type = ChildApplicationContextFactory.this.compositePropertyTypes.get(name); if (type != null) { updateCompositeProperty(name, value, type); } else { this.properties.setProperty(name, value); } }
if (false == isUpdateable(name) && ((ApplicationContextState) getState(false)).getApplicationContext(false) != null)
state.destroy(permanent);
public void setProperty(String name, String value) { if (name.equals(ChildApplicationContextFactory.TYPE_NAME_PROPERTY)) { throw new IllegalStateException("Illegal write to property \"" + ChildApplicationContextFactory.TYPE_NAME_PROPERTY + "\""); } if (name.equals(ChildApplicationContextFactory.INSTANCE_PATH_PROPERTY)) { throw new IllegalStateException("Illegal write to property \"" + ChildApplicationContextFactory.INSTANCE_PATH_PROPERTY + "\""); } this.lastStartupError = null; Class<?> type = ChildApplicationContextFactory.this.compositePropertyTypes.get(name); if (type != null) { updateCompositeProperty(name, value, type); } else { this.properties.setProperty(name, value); } }
/** * Gets the application context. Will not start a subsystem. * * @return the application context or null */ public ApplicationContext getReadOnlyApplicationContext() { this.lock.readLock().lock(); try { return ((ApplicationContextState) getState(false)).getApplicationContext(); } finally { this.lock.readLock().unlock(); } }
/** * Gets the application context. * * @param start indicates whether state should be started * * @return the application context or <code>null</code> if state was not already started and start == false */ public ApplicationContext getApplicationContext(boolean start) { if (start) { start(); } return this.applicationContext; } }
/** * Gets the application context. * * @param start indicates whether state should be started * * @return the application context or <code>null</code> if state was not already started and start == false */ public ApplicationContext getApplicationContext(boolean start) { if (start) { start(); } return this.applicationContext; } }
/** * Gets the application context. Will not start a subsystem. * * @return the application context or null */ public ApplicationContext getReadOnlyApplicationContext() { this.lock.readLock().lock(); try { return ((ApplicationContextState) getState(false)).getApplicationContext(); } finally { this.lock.readLock().unlock(); } }
@Override protected PropertyBackedBeanState createInitialState() throws IOException { return new ApplicationContextState(true); }
@Override protected PropertyBackedBeanState createInitialState() throws IOException { return new ApplicationContextState(false); }
/** * Gets the application context. * * @return the application context */ public ApplicationContext getApplicationContext() { return getApplicationContext(true); }
public ApplicationContext getApplicationContext() { this.lock.readLock().lock(); try { return ((ApplicationContextState) getState(true)).getApplicationContext(); } finally { this.lock.readLock().unlock(); } }
@Override protected PropertyBackedBeanState createInitialState() throws IOException { return new ApplicationContextState(true); }
/** * Gets the application context. * * @return the application context */ public ApplicationContext getApplicationContext() { return getApplicationContext(true); }
public ApplicationContext getApplicationContext() { this.lock.readLock().lock(); try { return ((ApplicationContextState) getState(true)).getApplicationContext(); } finally { this.lock.readLock().unlock(); } }
@Override protected PropertyBackedBeanState createInitialState() throws IOException { return new ApplicationContextState(false); }