public abstract class SITPluginVersion extends Object implements PluginVersion
PROP_NAME_APICOMPLIANCE_VERSION, PROP_NAME_PLUGIN_VERSION| Modifier | Constructor and Description |
|---|---|
protected |
SITPluginVersion() |
| Modifier and Type | Method and Description |
|---|---|
APIVersion |
getAPIComplianceVersion()
Restituisce la versione delle API con cui il plugin è compatibile.
|
String |
getAPIComplianceVersionPropertyName()
Restituisce il nome della proprietà che nel file di properties rappresenta la versione delle API
con cui il plugin è compatibile.
|
String |
getPluginVersionPropertyName()
Restituisce il nome della proprietà che nel file di properties rappresenta la versione del plugin.
|
Version |
getVersion()
Restituisce la versione del plugin.
|
abstract InputStream |
getVersionProperties()
Restituisce l'InputStream del file di properties che contiene le informazioni sulla versione.
|
protected void |
init()
Inizializza le variabili di classe leggendo il file di properties.
|
public abstract InputStream getVersionProperties() throws SITException
SITException. - Da lanciare in caso di problemi nella lettura del fileSITExceptionpublic String getPluginVersionPropertyName() throws SITException
SITExceptionPluginVersion.PROP_NAME_PLUGIN_VERSIONpublic String getAPIComplianceVersionPropertyName() throws SITException
SITExceptionPluginVersion.PROP_NAME_APICOMPLIANCE_VERSIONprotected void init()
throws IOException,
SITException
IOException. - Lanciata se ci sono problemi di lettura del file.SITExceptionIOExceptionpublic Version getVersion()
PluginVersiongetVersion in interface PluginVersionPluginVersion.getVersion()public APIVersion getAPIComplianceVersion()
PluginVersiongetAPIComplianceVersion in interface PluginVersionPluginVersion.getAPIComplianceVersion()Copyright © 2017 Comune di Prato. All rights reserved.