public class StandardConstructor.ConstructEnv extends Object implements ConstructNode
| Constructor and Description |
|---|
ConstructEnv() |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String name,
String separator,
String value,
String environment)
Implement the logic for missing and unset variables
|
Object |
construct(Node node)
Construct a Java instance with all the properties injected when it is possible.
|
String |
getEnv(String key)
Get value of the environment variable
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconstructRecursivepublic Object construct(Node node)
ConstructNodeconstruct in interface ConstructNodenode - composed Nodepublic String apply(String name, String separator, String value, String environment)
name - - variable name in the templateseparator - - separator in the template, can be :-, -, :?, ?value - - default value or the error in the templateenvironment - - the value from environment for the provided variableCopyright © 2018–2022. All rights reserved.