/** * Removes the given environment property from me. */ public void removeEnvironmentProperty(EnvironmentProperty environmentProperty) { this.getEnvironmentProperties().remove(environmentProperty); }
/** * Removes the given environment property from me. */ public void removeEnvironmentProperty(EnvironmentProperty environmentProperty) { this.getEnvironmentProperties().remove(environmentProperty); }
/** * Returns the environment property object searching on the supplied key. * throws an illegal argument exception if no such environment property exists. */ public EnvironmentProperty getEnvironmentPropertyByName(String name) { for (Iterator itr = this.getEnvironmentProperties().iterator(); itr.hasNext();) { EnvironmentProperty ev = (EnvironmentProperty) itr.next(); if (ev.getName().equals(name)) { return ev; } } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionapphasnoenvpropertybyname", "This app {0} has no environment property by the name of {1}", new Object[]{getRegistrationName(), name})); }
/** * Returns the environment property object searching on the supplied key. * throws an illegal argument exception if no such environment property exists. */ public EnvironmentProperty getEnvironmentPropertyByName(String name) { for (Iterator itr = this.getEnvironmentProperties().iterator(); itr.hasNext();) { EnvironmentProperty ev = (EnvironmentProperty) itr.next(); if (ev.getName().equals(name)) { return ev; } } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionapphasnoenvpropertybyname", "This app {0} has no environment property by the name of {1}", new Object[]{getRegistrationName(), name})); }
writeEnvEntryDescriptors(appNode, application.getEnvironmentProperties().iterator());
writeEnvEntryDescriptors(appNode, application.getEnvironmentProperties().iterator());
.getEnvironmentProperties() : null; if(environmentProperties != null) { for (EnvironmentProperty environmentProperty : environmentProperties) {