Class ConfigInspector

java.lang.Object
de.objektkontor.config.ConfigInspector
Direct Known Subclasses:
ConfigComparator, ConfigDuplicator, ConfigLoader, ConfigTracker

public class ConfigInspector extends Object
  • Constructor Details

    • ConfigInspector

      public ConfigInspector()
  • Method Details

    • dump

      public static String dump(Object config)
    • dump

      public static String dump(Object config, boolean skipNulls)
    • dump

      public static String dump(String prefix, Object config, boolean skipNulls)
    • getParameterKey

      protected static String getParameterKey(String prefix, Field field)
    • getParameterDescription

      protected static String getParameterDescription(Field field)
    • getFieldType

      protected static Class<?> getFieldType(Object config, Field field)
    • getFieldValue

      protected static Object getFieldValue(Object config, Field field)
    • setFieldValue

      protected static void setFieldValue(Object config, Field field, Object value)
    • newInstanceOfSameType

      protected static <C> C newInstanceOfSameType(C source)
    • newFieldInstance

      protected static Object newFieldInstance(Field field, Class<?> exactType)
    • getConfigParameterFields

      protected static List<Field> getConfigParameterFields(Class<?> type)
    • getIdentifierField

      protected static Field getIdentifierField(Class<?> type)
    • hasObserver

      protected static boolean hasObserver(Object config)
    • appendName

      protected static void appendName(StringBuilder buffer, String name)