Package com.tangosol.config.expression
Class SystemPropertyParameterResolver
java.lang.Object
com.tangosol.config.expression.SystemPropertyParameterResolver
- All Implemented Interfaces:
ParameterResolver
A
SystemPropertyParameterResolver
is a ParameterResolver
that is
based on property methods on System
.
Replaces
} since it required
read and write access for all Properties for simple property access.
invalid @link
{@link com.tangosol.config.expression.PropertiesParameterResolver(java.util.Map)
resolve(String)
only requires read access for property specified.
- Since:
- Coherence 12.2.1
- Author:
- jf 2015.04.15
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SystemPropertyParameterResolver
This singleton instance of theSystemPropertyParameterResolver
. -
Constructor Summary
-
Method Summary
-
Field Details
-
INSTANCE
This singleton instance of theSystemPropertyParameterResolver
.
-
-
Constructor Details
-
SystemPropertyParameterResolver
public SystemPropertyParameterResolver()
-
-
Method Details
-
resolve
Resolve Coherence system propertysName
- Specified by:
resolve
in interfaceParameterResolver
- Parameters:
sName
- system property name- Returns:
- a
Parameter
representing the value ofsName
or null if system property not found or if SecurityException was handled.
-
resolve
Return property's value as requested type.- Type Parameters:
T
- property value's target type- Parameters:
sName
- property nameclzTypeValue
- coerce system property's value from string to instance of this class- Returns:
- null if property has no value or return property's value coerced from string
to requested type.
Throws exceptions listed in
Value.as(Class)
when coercion fails.
-