Class ThreadLocalConfigContext

java.lang.Object
dev.webfx.platform.conf.impl.ThreadLocalConfigContext
All Implemented Interfaces:
AutoCloseable

public class ThreadLocalConfigContext extends Object implements AutoCloseable
Usage: try (ThreadLocalConfigContext context = ThreadLocalConfigContext.open(config)) { ... // Config can then be retrieved in another class (ex: ConfigVariablesResolver) as follow: Config config = ThreadLocalConfigContext.getThreadLocalConfig(); ... }
Author:
Bruno Salmon