Class SystemPropertyParameterResolver

    • Constructor Detail

      • SystemPropertyParameterResolver

        public SystemPropertyParameterResolver()
    • Method Detail

      • resolve

        public Parameter resolve​(String sName)
        Resolve Coherence system property sName
        Specified by:
        resolve in interface ParameterResolver
        Parameters:
        sName - system property name
        Returns:
        a Parameter representing the value of sName or null if system property not found or if SecurityException was handled.
      • resolve

        public <T> T resolve​(String sName,
                             Class<T> clzTypeValue)
        Return property's value as requested type.
        Type Parameters:
        T - property value's target type
        Parameters:
        sName - property name
        clzTypeValue - 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.