io.virtdata.libbasics.shared.stateful.LoadElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
package io.virtdata.libbasics.shared.stateful;
import io.virtdata.annotations.Example;
import io.virtdata.annotations.ThreadSafeMapper;
import io.virtdata.api.config.ConfigAware;
import io.virtdata.api.config.ConfigModel;
import io.virtdata.api.config.MutableConfigModel;
import java.util.Map;
import java.util.function.Function;
/**
* Load a value from a map, based on the injected configuration.
* The map which is used must be named by the mapname.
* If the injected configuration contains a variable of this name
* which is also a Map, then this map is referenced and read
* by the provided variable name.
*/
@ThreadSafeMapper
public class LoadElement implements Function