Class ConfigurationI
- java.lang.Object
-
- net.splitcells.dem.environment.config.framework.ConfigurationI
-
- All Implemented Interfaces:
Configuration
,ConfigurationV
public class ConfigurationI extends Object implements Configuration
TODOConfiguration
consistency check could be implemented viasubscribers
. AutomaticOption
update based on otherOption
updates should not be done via thesesubscribers
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Configuration
configuration()
<T> T
configValue(Class<? extends Option<T>> key)
<T> void
process(Class<? extends T> type, Function<T,T> processor)
Process a certain type of resource values.<T> Configuration
withConfigValue(Class<? extends Option<T>> key, T new_value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.splitcells.dem.environment.config.framework.Configuration
with_inited_option
-
-
-
-
Method Detail
-
configuration
public static Configuration configuration()
-
withConfigValue
public <T> Configuration withConfigValue(Class<? extends Option<T>> key, T new_value)
- Specified by:
withConfigValue
in interfaceConfiguration
-
configValue
public <T> T configValue(Class<? extends Option<T>> key)
- Specified by:
configValue
in interfaceConfigurationV
-
process
public <T> void process(Class<? extends T> type, Function<T,T> processor)
Description copied from interface:Configuration
Process a certain type of resource values.- Specified by:
process
in interfaceConfiguration
- Type Parameters:
T
- Type of resource values, that will be processed.- Parameters:
type
- Type of resource values, that will be processed.processor
- Function that replaces current resource values.
-
-