Package ch.qos.logback.core.util
Class OptionHelper
- java.lang.Object
-
- ch.qos.logback.core.util.OptionHelper
-
@Deprecated(since="2022-01-27") public class OptionHelper extends Object
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.
-
-
Constructor Summary
Constructors Constructor Description OptionHelper()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String[]extractDefaultReplacement(String key)Deprecated.Return a String[] of size two.static StringgetEnv(String key)Deprecated.Lookup a key from the environment.static PropertiesgetSystemProperties()Deprecated.Very similar toSystem.getProperties()except that theSecurityExceptionis absorbed.static StringgetSystemProperty(String key)Deprecated.Very similar toSystem.getPropertyexcept that theSecurityExceptionis absorbed.static StringgetSystemProperty(String key, String def)Deprecated.Very similar toSystem.getPropertyexcept that theSecurityExceptionis absorbed.static ObjectinstantiateByClassName(String className, Class<?> superClass, Context context)Deprecated.static ObjectinstantiateByClassName(String className, Class<?> superClass, ClassLoader classLoader)Deprecated.static ObjectinstantiateByClassNameAndParameter(String className, Class<?> superClass, Context context, Class<?> type, Object param)Deprecated.static ObjectinstantiateByClassNameAndParameter(String className, Class<?> superClass, ClassLoader classLoader, Class<?> type, Object parameter)Deprecated.static booleanisEmpty(String str)Deprecated.static StringpropertyLookup(String key, PropertyContainer pc1, PropertyContainer pc2)Deprecated.static voidsetSystemProperties(ContextAware contextAware, Properties props)Deprecated.static voidsetSystemProperty(ContextAware contextAware, String key, String value)Deprecated.static StringsubstVars(String val, PropertyContainer pc1)Deprecated.static StringsubstVars(String input, PropertyContainer pc0, PropertyContainer pc1)Deprecated.See http://logback.qos.ch/manual/configuration.html#variableSubstitutionstatic booleantoBoolean(String value, boolean dEfault)Deprecated.Ifvalueis "true", thentrueis returned.
-
-
-
Method Detail
-
instantiateByClassName
public static Object instantiateByClassName(String className, Class<?> superClass, Context context) throws IncompatibleClassException, DynamicClassLoadingException
Deprecated.
-
instantiateByClassNameAndParameter
public static Object instantiateByClassNameAndParameter(String className, Class<?> superClass, Context context, Class<?> type, Object param) throws IncompatibleClassException, DynamicClassLoadingException
Deprecated.
-
instantiateByClassName
public static Object instantiateByClassName(String className, Class<?> superClass, ClassLoader classLoader) throws IncompatibleClassException, DynamicClassLoadingException
Deprecated.
-
instantiateByClassNameAndParameter
public static Object instantiateByClassNameAndParameter(String className, Class<?> superClass, ClassLoader classLoader, Class<?> type, Object parameter) throws IncompatibleClassException, DynamicClassLoadingException
Deprecated.
-
substVars
public static String substVars(String val, PropertyContainer pc1)
Deprecated.
-
substVars
public static String substVars(String input, PropertyContainer pc0, PropertyContainer pc1)
Deprecated.See http://logback.qos.ch/manual/configuration.html#variableSubstitution
-
propertyLookup
public static String propertyLookup(String key, PropertyContainer pc1, PropertyContainer pc2)
Deprecated.
-
getSystemProperty
public static String getSystemProperty(String key, String def)
Deprecated.Very similar toSystem.getPropertyexcept that theSecurityExceptionis absorbed.- Parameters:
key- The key to search for.def- The default value to return.- Returns:
- the string value of the system property, or the default value if there is no property with that key.
-
getEnv
public static String getEnv(String key)
Deprecated.Lookup a key from the environment.- Parameters:
key-- Returns:
- value corresponding to key from the OS environment
-
getSystemProperty
public static String getSystemProperty(String key)
Deprecated.Very similar toSystem.getPropertyexcept that theSecurityExceptionis absorbed.- Parameters:
key- The key to search for.- Returns:
- the string value of the system property.
-
setSystemProperties
public static void setSystemProperties(ContextAware contextAware, Properties props)
Deprecated.
-
setSystemProperty
public static void setSystemProperty(ContextAware contextAware, String key, String value)
Deprecated.
-
getSystemProperties
public static Properties getSystemProperties()
Deprecated.Very similar toSystem.getProperties()except that theSecurityExceptionis absorbed.- Returns:
- the system properties
-
extractDefaultReplacement
public static String[] extractDefaultReplacement(String key)
Deprecated.Return a String[] of size two. The first item containing the key part and the second item containing a default value specified by the user. The second item will be null if no default value is specified.- Parameters:
key-- Returns:
-
toBoolean
public static boolean toBoolean(String value, boolean dEfault)
Deprecated.Ifvalueis "true", thentrueis returned. Ifvalueis "false", thentrueis returned. Otherwise,defaultis returned.Case of value is unimportant.
-
isEmpty
public static boolean isEmpty(String str)
Deprecated.
-
-