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 java.lang.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 java.lang.String[]
extractDefaultReplacement(java.lang.String key)
Deprecated.Return a String[] of size two.static java.lang.String
getEnv(java.lang.String key)
Deprecated.Lookup a key from the environment.static java.util.Properties
getSystemProperties()
Deprecated.Very similar toSystem.getProperties()
except that theSecurityException
is absorbed.static java.lang.String
getSystemProperty(java.lang.String key)
Deprecated.Very similar toSystem.getProperty
except that theSecurityException
is absorbed.static java.lang.String
getSystemProperty(java.lang.String key, java.lang.String def)
Deprecated.Very similar toSystem.getProperty
except that theSecurityException
is absorbed.static java.lang.Object
instantiateByClassName(java.lang.String className, java.lang.Class<?> superClass, Context context)
Deprecated.static java.lang.Object
instantiateByClassName(java.lang.String className, java.lang.Class<?> superClass, java.lang.ClassLoader classLoader)
Deprecated.static java.lang.Object
instantiateByClassNameAndParameter(java.lang.String className, java.lang.Class<?> superClass, Context context, java.lang.Class<?> type, java.lang.Object param)
Deprecated.static java.lang.Object
instantiateByClassNameAndParameter(java.lang.String className, java.lang.Class<?> superClass, java.lang.ClassLoader classLoader, java.lang.Class<?> type, java.lang.Object parameter)
Deprecated.static boolean
isEmpty(java.lang.String str)
Deprecated.static java.lang.String
propertyLookup(java.lang.String key, PropertyContainer pc1, PropertyContainer pc2)
Deprecated.static void
setSystemProperties(ContextAware contextAware, java.util.Properties props)
Deprecated.static void
setSystemProperty(ContextAware contextAware, java.lang.String key, java.lang.String value)
Deprecated.static java.lang.String
substVars(java.lang.String val, PropertyContainer pc1)
Deprecated.static java.lang.String
substVars(java.lang.String input, PropertyContainer pc0, PropertyContainer pc1)
Deprecated.See http://logback.qos.ch/manual/configuration.html#variableSubstitutionstatic boolean
toBoolean(java.lang.String value, boolean dEfault)
Deprecated.Ifvalue
is "true", thentrue
is returned.
-
-
-
Method Detail
-
instantiateByClassName
public static java.lang.Object instantiateByClassName(java.lang.String className, java.lang.Class<?> superClass, Context context) throws IncompatibleClassException, DynamicClassLoadingException
Deprecated.
-
instantiateByClassNameAndParameter
public static java.lang.Object instantiateByClassNameAndParameter(java.lang.String className, java.lang.Class<?> superClass, Context context, java.lang.Class<?> type, java.lang.Object param) throws IncompatibleClassException, DynamicClassLoadingException
Deprecated.
-
instantiateByClassName
public static java.lang.Object instantiateByClassName(java.lang.String className, java.lang.Class<?> superClass, java.lang.ClassLoader classLoader) throws IncompatibleClassException, DynamicClassLoadingException
Deprecated.
-
instantiateByClassNameAndParameter
public static java.lang.Object instantiateByClassNameAndParameter(java.lang.String className, java.lang.Class<?> superClass, java.lang.ClassLoader classLoader, java.lang.Class<?> type, java.lang.Object parameter) throws IncompatibleClassException, DynamicClassLoadingException
Deprecated.
-
substVars
public static java.lang.String substVars(java.lang.String val, PropertyContainer pc1)
Deprecated.
-
substVars
public static java.lang.String substVars(java.lang.String input, PropertyContainer pc0, PropertyContainer pc1)
Deprecated.See http://logback.qos.ch/manual/configuration.html#variableSubstitution
-
propertyLookup
public static java.lang.String propertyLookup(java.lang.String key, PropertyContainer pc1, PropertyContainer pc2)
Deprecated.
-
getSystemProperty
public static java.lang.String getSystemProperty(java.lang.String key, java.lang.String def)
Deprecated.Very similar toSystem.getProperty
except that theSecurityException
is 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 java.lang.String getEnv(java.lang.String key)
Deprecated.Lookup a key from the environment.- Parameters:
key
-- Returns:
- value corresponding to key from the OS environment
-
getSystemProperty
public static java.lang.String getSystemProperty(java.lang.String key)
Deprecated.Very similar toSystem.getProperty
except that theSecurityException
is absorbed.- Parameters:
key
- The key to search for.- Returns:
- the string value of the system property.
-
setSystemProperties
public static void setSystemProperties(ContextAware contextAware, java.util.Properties props)
Deprecated.
-
setSystemProperty
public static void setSystemProperty(ContextAware contextAware, java.lang.String key, java.lang.String value)
Deprecated.
-
getSystemProperties
public static java.util.Properties getSystemProperties()
Deprecated.Very similar toSystem.getProperties()
except that theSecurityException
is absorbed.- Returns:
- the system properties
-
extractDefaultReplacement
public static java.lang.String[] extractDefaultReplacement(java.lang.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(java.lang.String value, boolean dEfault)
Deprecated.Ifvalue
is "true", thentrue
is returned. Ifvalue
is "false", thentrue
is returned. Otherwise,default
is returned.Case of value is unimportant.
-
isEmpty
public static boolean isEmpty(java.lang.String str)
Deprecated.
-
-