public class DefaultVersionsHandler extends AbstractLogEnabled implements VersionsHandler, ThreadSafe
Modifier and Type | Field and Description |
---|---|
private Version |
_ametysVersion |
private Version |
_applicationVersion |
ROLE
Constructor and Description |
---|
DefaultVersionsHandler() |
Modifier and Type | Method and Description |
---|---|
private Version |
_getApplicationVersion() |
protected Version |
_getVersionFromClasspath(String path,
String versionName)
Helper for getting Version from an XML file in the classpath.
The file must be formed like this : <version> <version>Version name</version> <date>Version date in format "yyyyMMdd'T'HHmmz"</date> </version> |
protected Collection<Version> |
getAdditionalVersions()
Returns any additional versions informations displayable in the administrator area.
Note: This implementation returns null. |
Collection<Version> |
getVersions()
Returns all Versions to be displayed in the administrator area
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private Version _ametysVersion
private Version _applicationVersion
public DefaultVersionsHandler()
public final Collection<Version> getVersions()
VersionsHandler
getVersions
in interface VersionsHandler
protected Collection<Version> getAdditionalVersions()
private Version _getApplicationVersion()
protected final Version _getVersionFromClasspath(String path, String versionName)
path
- a path in the classpath poiting to an XML fileversionName
- the name of the Version to create