Class StringReadingConfigProvider<T>
java.lang.Object
me.bristermitten.mittenlib.config.provider.StringReadingConfigProvider<T>
- Type Parameters:
T
- the type of the config
- All Implemented Interfaces:
javax.inject.Provider<T>
,ConfigProvider<T>
A
ConfigProvider
that reads a String to load a config-
Constructor Summary
ConstructorsConstructorDescriptionStringReadingConfigProvider
(String data, Configuration<T> config, ConfigReader reader) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.bristermitten.mittenlib.config.provider.ConfigProvider
clearCache
-
Constructor Details
-
StringReadingConfigProvider
-
-
Method Details
-
get
- Specified by:
get
in interfacejavax.inject.Provider<T>
-
path
Always empty, as this provider does not have a path. If you are acquiring a String from a file source, you likely shouldn't be using this class - useReadingConfigProvider
orFileWatchingConfigProvider
instead- Specified by:
path
in interfaceConfigProvider<T>
- Returns:
- an empty Optional
- See Also:
-