Package net.sourceforge.jnlp.config
Class DeploymentConfiguration
java.lang.Object
net.sourceforge.jnlp.config.DeploymentConfiguration
Manages the various properties and configuration related to deployment.
See:
http://download.oracle.com/javase/1.5.0/docs/guide/deployment/deployment-guide/properties.html
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyTo(Properties target) Copies the current configuration into the targetgetProperty(String key) Get the value for the given keygetPropertyAsList(String key) getRaw()booleanvoidload()Initialize this deployment configuration by reading configuration files.voidload(boolean fixIssues) Initialize this deployment configuration by reading configuration files.voidvoidvoidsave()Saves all properties that are not part of default or system propertiesvoidvoidsetProperty(String key, String value) Sets the value of corresponding to the key.voidstatic Stringconvenient method to show VVPossibleBrowserValues with all four params
-
Field Details
-
LOCKED_POSTFIX
- See Also:
-
LOCAL_DEPLOYMENT_PROPERTIES_FILE_PATH
- See Also:
-
USER_HOME_DIR_TOKEN
- See Also:
-
-
Constructor Details
-
DeploymentConfiguration
public DeploymentConfiguration()
-
-
Method Details
-
isLocked
-
lock
-
unlock
-
setLoadingException
-
getLoadingException
-
resetToDefaults
public void resetToDefaults() -
load
Initialize this deployment configuration by reading configuration files. Generally, it will try to continue and ignore errors it finds (such as file not found).- Throws:
ConfigurationException- if it encounters a fatal error.
-
load
Initialize this deployment configuration by reading configuration files. Generally, it will try to continue and ignore errors it finds (such as file not found).- Parameters:
fixIssues- If true, fix issues that are discovered when reading configuration by resorting to the default values- Throws:
ConfigurationException- if it encounters a fatal error.MalformedURLException
-
copyTo
Copies the current configuration into the target- Parameters:
target- properties where to copy actual ones
-
getProperty
Get the value for the given key- Parameters:
key- the property key- Returns:
- the value for the key, or null if it can not be found
-
getPropertyAsList
-
getAllPropertyNames
- Returns:
- a Set containing all the property names
-
getRaw
- Returns:
- a map containing property names and the corresponding settings
-
setProperty
Sets the value of corresponding to the key. If the value has been marked as locked, it is not changed- Parameters:
key- the keyvalue- the value to be associated with the key
-
save
Saves all properties that are not part of default or system properties- Throws:
IOException- if unable to save the fileIllegalStateException- if save() is called before load()
-
VVPossibleBrowserValues
convenient method to show VVPossibleBrowserValues with all four params- Returns:
- translation of VVPossibleBrowserValues with all params in
-