Class EnvFileVar
java.lang.Object
org.apache.juneau.commons.svl.Var
org.apache.juneau.commons.svl.SimpleVar
org.apache.juneau.commons.svl.DefaultingVar
org.apache.juneau.commons.svl.vars.EnvFileVar
Environment-file variable resolver.
The format for this var is
This variable is functionally identical to DotenvVar, but provides a
generic env-file naming option for callers that do not want dotenv-specific naming.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvFileVarCreates anEnvFileVarbound to a specific env file path.resolve(VarResolverSession session, String key) The interface that needs to be implemented for subclasses ofSimpleVar.Methods inherited from class org.apache.juneau.commons.svl.DefaultingVar
doResolveMethods inherited from class org.apache.juneau.commons.svl.Var
allowNested, allowRecurse, canResolve, getName, isStable
-
Field Details
-
NAME
The name of this variable.- See Also:
-
-
Constructor Details
-
EnvFileVar
public EnvFileVar()Constructor.
-
-
Method Details
-
create
Creates anEnvFileVarbound to a specific env file path.- Parameters:
path- The env file path. Can benull , in which case no properties are loaded.- Returns:
- A new
EnvFileVarinstance.
-
resolve
Description copied from class:VarThe interface that needs to be implemented for subclasses ofSimpleVar.
-