Package org.apache.juneau.svl
Class DefaultingVar
java.lang.Object
org.apache.juneau.svl.Var
org.apache.juneau.svl.SimpleVar
org.apache.juneau.svl.DefaultingVar
- Direct Known Subclasses:
ArgsVar
,ConfigVar
,EnvVariablesVar
,FileVar
,ManifestFileVar
,MapVar
,ServletInitParamVar
Interface for the resolution of vars with a default value if the resolve() method returns null .
For example, to resolve the system property
Subclasses must implement the following method:
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoResolve
(VarResolverSession session, String s) The method called fromVarResolver
.Methods inherited from class org.apache.juneau.svl.Var
allowNested, allowRecurse, canResolve, getName, resolve
-
Constructor Details
-
DefaultingVar
Constructor.- Parameters:
name
- The name of this variable.
-
-
Method Details
-
doResolve
Description copied from class:Var
The method called fromVarResolver
.Can be overridden to intercept the request and do special handling.
Default implementation simply calls resolve(String).
-