Class Configurator
- java.lang.Object
-
- com.airhacks.afterburner.configuration.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)
-
-
-
Field Detail
-
CONFIGURATION_FILE
public static final java.lang.String CONFIGURATION_FILE
- See Also:
- Constant Field Values
-
-
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#getResourceAsStreamkey
- to be resolved- Returns:
- the resolved value.
-
forgetAll
public void forgetAll()
-
-