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, waitMethods inherited from interface me.bristermitten.mittenlib.config.provider.ConfigProvider
clearCache
-
Constructor Details
-
StringReadingConfigProvider
-
-
Method Details
-
get
- Specified by:
getin 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 - useReadingConfigProviderorFileWatchingConfigProviderinstead- Specified by:
pathin interfaceConfigProvider<T>- Returns:
- an empty Optional
- See Also:
-