Class FileConfigProvider<W extends ConfigurationWrapper<?>>
- java.lang.Object
-
- cc.carm.lib.configuration.core.source.ConfigurationProvider<W>
-
- cc.carm.lib.configuration.core.source.impl.FileConfigProvider<W>
-
public abstract class FileConfigProvider<W extends ConfigurationWrapper<?>> extends ConfigurationProvider<W>
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull java.io.File
file
-
Fields inherited from class cc.carm.lib.configuration.core.source.ConfigurationProvider
updateTime
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FileConfigProvider(@NotNull java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.io.File
getFile()
@Nullable java.io.InputStream
getResource(@NotNull java.lang.String filename)
void
initializeFile(@Nullable java.lang.String sourcePath)
void
saveResource(@NotNull java.lang.String resourcePath, boolean replace)
-
Methods inherited from class cc.carm.lib.configuration.core.source.ConfigurationProvider
getComments, getConfiguration, getHeaderComment, getInitializer, getInlineComment, getUpdateTime, initialize, initialize, initialize, initialize, initialize, isExpired, onReload, reload, save, setHeaderComment, setInlineComment
-
-
-
-
Method Detail
-
getFile
@NotNull public @NotNull java.io.File getFile()
-
initializeFile
public void initializeFile(@Nullable @Nullable java.lang.String sourcePath) throws java.io.IOException
- Throws:
java.io.IOException
-
saveResource
public void saveResource(@NotNull @NotNull java.lang.String resourcePath, boolean replace) throws java.io.IOException, java.lang.IllegalArgumentException
- Throws:
java.io.IOException
java.lang.IllegalArgumentException
-
getResource
@Nullable public @Nullable java.io.InputStream getResource(@NotNull @NotNull java.lang.String filename)
-
-