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 fileSITException
public String getPluginVersionPropertyName() throws SITException
SITException
PluginVersion.PROP_NAME_PLUGIN_VERSION
public String getAPIComplianceVersionPropertyName() throws SITException
SITException
PluginVersion.PROP_NAME_APICOMPLIANCE_VERSION
protected void init() throws IOException, SITException
IOException.
- Lanciata se ci sono problemi di lettura del file.SITException
IOException
public Version getVersion()
PluginVersion
getVersion
in interface PluginVersion
PluginVersion.getVersion()
public APIVersion getAPIComplianceVersion()
PluginVersion
getAPIComplianceVersion
in interface PluginVersion
PluginVersion.getAPIComplianceVersion()
Copyright © 2017 Comune di Prato. All rights reserved.