public class VersioningService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
charset |
protected static ReentrantLock |
fileLock |
protected String |
fileName |
protected TargetManager |
targetManager |
| Constructor and Description |
|---|
VersioningService() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
String |
readVersion(String targetName) |
void |
setCharset(String charset) |
void |
setFileName(String fileName) |
void |
setTargetManager(TargetManager targetManager) |
void |
writeNewVersion(String newVersion,
String targetName) |
protected static ReentrantLock fileLock
protected String fileName
protected TargetManager targetManager
protected String charset
public void init()
public void writeNewVersion(String newVersion, String targetName) throws VersionException
VersionExceptionpublic String readVersion(String targetName) throws VersionException
VersionExceptionpublic void setFileName(String fileName)
public void setTargetManager(TargetManager targetManager)
public void setCharset(String charset)
Copyright © 2017 CrafterCMS. All rights reserved.