| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| public static final Pattern | ENV_FORMAT
name must be a word ⇒ \w+ value can be any non-space ⇒ \S+ |
| public static final Tag | ENV_TAG
Tag to indicate ENV |
| Access | Constructor and Description |
|---|---|
| public | |
| public | EnvScalarConstructor(TypeDescription
- the class (usually JavaBean) to be constructed theRoot, Collection<TypeDescription> - collection of classes used by the root class moreTDs, LoaderOptions - configuration loadingConfig)Create EnvScalarConstructor which can create JavaBeans with variable substitution |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the value to apply in the template- variable name in the template name, String - separator in the template, can be :-, -, :?, ? separator, String - default value or the error in the template value, String - the value from environment for the provided variable environment)Implement the logic for missing and unset variables |
| public String |
| ENV_FORMAT | back to summary |
|---|---|
| public static final Pattern ENV_FORMAT name must be a word ⇒ \w+ value can be any non-space ⇒ \S+ | |
| ENV_TAG | back to summary |
|---|---|
| public static final Tag ENV_TAG Tag to indicate ENV | |
| EnvScalarConstructor | back to summary |
|---|---|
| public EnvScalarConstructor() For simple cases when no JavaBeans are needed | |
| EnvScalarConstructor | back to summary |
|---|---|
| public EnvScalarConstructor(TypeDescription theRoot, Collection<TypeDescription> moreTDs, LoaderOptions loadingConfig) Create EnvScalarConstructor which can create JavaBeans with variable substitution
| |
| apply | back to summary |
|---|---|
| public String apply(String name, String separator, String value, String environment) Implement the logic for missing and unset variables | |
| getEnv | back to summary |
|---|---|
| public String getEnv(String key) Get value of the environment variable | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | construct(Node
composed Node node)Implements org. |
| ConstructEnv | back to summary |
|---|---|
| private ConstructEnv() | |
| construct | back to summary |
|---|---|
| public Object construct(Node node) Implements org. Doc from org. Construct a Java instance with all the properties injected when it is possible. | |