Top Fields Constructors Methods
com.airhacks.afterburner.configuration

public Class Configurator

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.util.Properties, java.util.function.Function

Author
airhacks.com

Field Summary

Modifier and TypeField and Description
public static final String
private Function<Object, Object>
private final Properties

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
pack-priv Properties
getProperties(Class<?> clazz)

public Object

Returns:

the resolved value.
getProperty
(Class<?>
is used to locate the properties @see java.lang.Class#getResourceAsStream
clazz
,
Object
to be resolved
key
)

public Configurator
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONFIGURATION_FILEback to summary
public static final String CONFIGURATION_FILE
customConfiguratorback to summary
private Function<Object, Object> customConfigurator
systemPropertiesback to summary
private final Properties systemProperties

Constructor Detail

Configuratorback to summary
public Configurator()

Method Detail

forgetAllback to summary
public void forgetAll()
getPropertiesback to summary
pack-priv Properties getProperties(Class<?> clazz)
getPropertyback to summary
public Object getProperty(Class<?> clazz, Object key)
Parameters
clazz:Class<?>

is used to locate the properties @see java.lang.Class#getResourceAsStream

key:Object

to be resolved

Returns:Object

the resolved value.

setback to summary
public Configurator set(Function<Object, Object> custom)