public abstract class AbstractFileVersionProvider extends AbstractVersionProvider
VersionProvider
that use filesdefaultValue, logger
SKIP, VERSION
Constructor and Description |
---|
AbstractFileVersionProvider() |
Modifier and Type | Method and Description |
---|---|
protected String |
doGetVersion(Object target) |
protected void |
doSetVersion(Object target,
String version) |
protected Path |
getFile(Object target) |
protected abstract String |
readVersionFromFile(Path file) |
protected abstract void |
writeVersionToFile(Path file,
String version) |
getVersion, setDefaultValue, setVersion
protected String doGetVersion(Object target) throws Exception
doGetVersion
in class AbstractVersionProvider
Exception
protected void doSetVersion(Object target, String version) throws Exception
doSetVersion
in class AbstractVersionProvider
Exception
protected abstract String readVersionFromFile(Path file) throws Exception
Exception
Copyright © 2023 CrafterCMS. All rights reserved.