Class SystemPropertiesVar
The format for this var is
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 TypeMethodDescriptionprotected booleanisStable()System properties are mutable in principle (viaSystem.setProperty(java.lang.String, java.lang.String)) but treated as stable in normal application code.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
-
Field Details
-
NAME
The name of this variable.- See Also:
-
-
Constructor Details
-
SystemPropertiesVar
public SystemPropertiesVar()Constructor.
-
-
Method Details
-
resolve
Description copied from class:VarThe interface that needs to be implemented for subclasses ofSimpleVar. -
isStable
System properties are mutable in principle (viaSystem.setProperty(java.lang.String, java.lang.String)) but treated as stable in normal application code. This var opts in to compile-time stable-value folding.Caveat:
If a deployment relies on
System.setProperty(java.lang.String, java.lang.String)mutations afterVarResolverbuild, those mutations will not be picked up by templates that were compiled before the mutation. Either re-build the resolver after the property change, or override this method to returnfalsevia a subclass.
-