public class PropertiesFunctions extends Object
PropertyValueResolver
.
Because EL functions must be static methods, the design of this class is
a little unusual. A thread that wishes to call any of the public static
methods must first call setResolver(PropertyValueResolver)
to
specify PropertyValueResolver
that will be used to resolve property
names to string values. Typically this is done right before an expression
is evaluated. After the expression is evaluated, the same thread must call
clearResolver()
to remove the resolver from the thread local managed
by this class.
Constructor and Description |
---|
PropertiesFunctions() |
Modifier and Type | Method and Description |
---|---|
static String |
get(String name)
Gets a property value.
|
static String |
getOptional(String name,
String defaultValue)
Gets a property value.
|
Copyright © 2014–2016. All rights reserved.