Class StringToObjectConverter

java.lang.Object
ch.qos.logback.core.joran.util.StringToObjectConverter

public class StringToObjectConverter extends Object
Utility class which can convert string into objects.
  • Field Details

    • STING_CLASS_PARAMETER

      private static final Class<?>[] STING_CLASS_PARAMETER
  • Constructor Details

    • StringToObjectConverter

      public StringToObjectConverter()
  • Method Details

    • canBeBuiltFromSimpleString

      public static boolean canBeBuiltFromSimpleString(Class<?> parameterClass)
    • convertArg

      public static Object convertArg(ContextAware ca, String val, Class<?> type)
      Convert val a String parameter to an object of a given type.
    • isOfTypeCharset

      private static boolean isOfTypeCharset(Class<?> type)
    • convertToCharset

      private static Charset convertToCharset(ContextAware ca, String val)
    • getValueOfMethod

      public static Method getValueOfMethod(Class<?> type)
    • followsTheValueOfConvention

      private static boolean followsTheValueOfConvention(Class<?> parameterClass)
    • convertByValueOfMethod

      private static Object convertByValueOfMethod(ContextAware ca, Class<?> type, String val)
    • convertToEnum

      private static Object convertToEnum(ContextAware ca, String val, Class<? extends Enum> enumType)
    • isBuildableFromSimpleString

      boolean isBuildableFromSimpleString()