Class Configurator


  • public class Configurator
    extends java.lang.Object
    Author:
    airhacks.com
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CONFIGURATION_FILE  
    • Constructor Summary

      Constructors 
      Constructor Description
      Configurator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void forgetAll()  
      java.lang.Object getProperty​(java.lang.Class<?> clazz, java.lang.Object key)  
      Configurator set​(java.util.function.Function<java.lang.Object,​java.lang.Object> custom)  
      Configurator setLogger​(java.util.function.Consumer<java.lang.String> log)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CONFIGURATION_FILE

        public static final java.lang.String CONFIGURATION_FILE
        See Also:
        Constant Field Values
    • Constructor Detail

      • Configurator

        public Configurator()
    • Method Detail

      • set

        public Configurator set​(java.util.function.Function<java.lang.Object,​java.lang.Object> custom)
      • setLogger

        public Configurator setLogger​(java.util.function.Consumer<java.lang.String> log)
      • getProperty

        public java.lang.Object getProperty​(java.lang.Class<?> clazz,
                                            java.lang.Object key)
        Parameters:
        clazz - is used to locate the properties @see java.lang.Class#getResourceAsStream
        key - to be resolved
        Returns:
        the resolved value.
      • forgetAll

        public void forgetAll()