public class JavaServiceWrapperConfigurationFileUpdate extends EnvironmentScriptFileUpdate
EnvironmentScriptFileUpdate.NameValuePair| Constructor and Description |
|---|
JavaServiceWrapperConfigurationFileUpdate(String location)
Constructor given the full path to config file.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
createEnvironmentVariableLine(EnvironmentScriptFileUpdate.NameValuePair nvp)
Creates a line that defines an environment variable name and its value.
|
protected EnvironmentScriptFileUpdate.NameValuePair |
parseEnvironmentVariableLine(String line)
Parses the given string that is a line from a environment script file.
|
convertNameValuePairListToProperties, convertPropertiesToNameValuePairList, create, loadExisting, update, updatepublic JavaServiceWrapperConfigurationFileUpdate(String location)
location - location of the fileprotected String createEnvironmentVariableLine(EnvironmentScriptFileUpdate.NameValuePair nvp)
EnvironmentScriptFileUpdatecreateEnvironmentVariableLine in class EnvironmentScriptFileUpdatenvp - the environment variable definitionprotected EnvironmentScriptFileUpdate.NameValuePair parseEnvironmentVariableLine(String line)
EnvironmentScriptFileUpdatenull
is returned, otherwise, the environment variable name and value is returned.parseEnvironmentVariableLine in class EnvironmentScriptFileUpdateline - the line from the environment script filenull
if the line doesn't define an env var.Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.