Class ConfigVar
The format for this var is Config.get(String) for the format of the key.
This variable resolver requires that a Config bean be available in the resolver session bean factory.
Example:
Since this is a SimpleVar, any variables contained in the result will be recursively resolved.
Likewise, if the arguments contain any variables, those will be resolved before they are passed to this var.
See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanResolve(VarResolverSession session) Returnstrue if this variable can be resolved in the specified session.resolve(VarResolverSession session, String key) The interface that needs to be implemented for subclasses ofSimpleVar.Methods inherited from class org.apache.juneau.svl.DefaultingVar
doResolveMethods inherited from class org.apache.juneau.svl.Var
allowNested, allowRecurse, getName
-
Field Details
-
NAME
The name of this variable.- See Also:
-
-
Constructor Details
-
ConfigVar
public ConfigVar()Constructor.
-
-
Method Details
-
canResolve
Description copied from class:VarReturnstrue if this variable can be resolved in the specified session.For example, some variable cannot resolve unless specific context or session objects are available.
- Overrides:
canResolvein classVar- Parameters:
session- The current session.- Returns:
true if this variable can be resolved in the specified session.
-
resolve
Description copied from class:VarThe interface that needs to be implemented for subclasses ofSimpleVar.
-