public interface Plugin
extends org.springframework.core.io.ResourceLoader
| Modifier and Type | Interface and Description |
|---|---|
static class |
Plugin.PluginState
Stan wtyczki.
|
| Modifier and Type | Method and Description |
|---|---|
PluginContext |
getContext() |
String |
getKey()
Zwraca identyfikator tekstowy wtyczki.
|
Date |
getLastUpdateDate() |
String |
getMessage(String code) |
String |
getMessage(String code,
Locale locale,
Object... args) |
String |
getMessage(String code,
Object... args) |
Module<?> |
getModule(String key)
Zwraca deskryptor modułu o podanym kluczu
|
List<Module<?>> |
getModules() |
<T> List<Module<T>> |
getModules(Class<T> clazz) |
String |
getName() |
PluginDescriptor |
getPluginDescriptor() |
PluginFramework |
getPluginFramework() |
Plugin.PluginState |
getState() |
String |
getVersion() |
void |
start()
Uruchamia wtyczkę
|
void |
stop()
Zatrzymuje wtyczkę
|
void |
uninstall()
Usuwa wtyczkę z systemu
|
void |
update(File file)
Aktualizuje wtyczkę z podanego pliku
|
void start()
void stop()
void update(File file) throws InvalidPluginException, IOException
file - plik zawierający nową wersję tej wtyczkiIOExceptionInvalidPluginExceptionvoid uninstall()
Plugin.PluginState getState()
Plugin.PluginStateString getKey()
String getName()
Date getLastUpdateDate()
String getVersion()
PluginFramework getPluginFramework()
PluginDescriptor getPluginDescriptor()
PluginContext getContext()
Module<?> getModule(String key)
moduleKey - Identyfikator modułuList<Module<?>> getModules()
<T> List<Module<T>> getModules(Class<T> clazz)
clazz - Klasa dla której moduły muszą spełniać warunek Class.isAssignableFrom(Class)Copyright © 2014 Suncode. All rights reserved.