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); } }
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); } }