public class ConfigVar extends DefaultingVar
The format for this var is Config.getString(String) for the format of the key.
This variable resolver requires that a Config object be set as a context object on the resolver or a
session object on the resolver session.
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name of this variable.
|
static String |
SESSION_config
The name of the session or context object that identifies the
Config object. |
| Constructor and Description |
|---|
ConfigVar()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
resolve(VarResolverSession session,
String key)
The interface that needs to be implemented for subclasses of
SimpleVar. |
doResolveallowNested, allowRecurse, canResolve, getNamepublic static final String SESSION_config
Config object.public static final String NAME
public ConfigVar()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.