A singleton class representing a EnvVarProperty object. This class is responsible for storing injected/binded environment variables to be used by the SCM pluggable library.
| Modifiers | Name | Description |
|---|---|---|
private java.lang.Object |
bindings |
|
private static java.lang.Object |
lock |
|
private static EnvVarProperty |
singleton |
| Constructor and description |
|---|
private EnvVarProperty
()Private constructor for class EnvVarProperty as it's a singleton. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
private boolean |
checkDirectoryExists(java.lang.String directoryPath)Return true if the specified path is a directory and exists. |
|
static EnvVarProperty |
getInstance()A singleton method for the EnvVarProperty object. |
|
java.io.PrintStream |
getLogger()Return STDOUT logger. |
|
java.lang.String |
getPluggablePath()Return a string representation of the SCM provider's pluggable search path. |
|
java.lang.String |
getPropertiesPath()Return a string representation of the SCM provider's properties file search path. |
|
java.lang.String |
getProperty(java.lang.String property)Return a string representation of the specified property. |
|
java.lang.String |
getSshPrivateKeyPath()Return a string representation of the cartridge loaders SCM_SSH_KEY path. |
|
boolean |
hasProperty(java.lang.String propertyName)Return true if the env var property exists, else false if bindings is null or the property does not exist. |
|
java.lang.String |
returnValue(java.lang.String keyString)Returns a string where all environment variable keys pre-pended with "$" are replaced with their literal values |
|
void |
setVariableBindings(java.lang.Object variables)A setter method used to inject variables to store. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Private constructor for class EnvVarProperty as it's a singleton.
Return true if the specified path is a directory and exists.
directoryPath - - the file path to the directory.A singleton method for the EnvVarProperty object.
Return STDOUT logger.
Return a string representation of the SCM provider's pluggable search path.
Return a string representation of the SCM provider's properties file search path.
Return a string representation of the specified property.
property - the property to search for.Return a string representation of the cartridge loaders SCM_SSH_KEY path.
Return true if the env var property exists, else false if bindings is null or the property does not exist.
propertyName - - the name of the property to check exists.Returns a string where all environment variable keys pre-pended with "$" are replaced with their literal values
A setter method used to inject variables to store.
variables - - variables to store.