{8.0.0-new, 8.1.2-deprecated} VarResolver

The Microservice API incorporates the {@doc juneau-marshall.SimpleVariableLanguage Simple Variable Language} API.

The variable resolver can be augmented through the following methods:

A typical usage pattern is shown below:

// $A used in variable resolver. VarResolver vr = Microservice.getInstance().getVarResolver(); System.out.println(vr.resolve("Main class is set to $MF{Main-Class, unknown}"));

The variable resolver becomes much more powerful when used in REST resource annotations which will be described latter in {@doc juneau-microservice-jetty}

By default, support for the following variables are provided: