public class PluginService extends Service
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME
Nome do serviço para o
ServiceManager |
| Modifier | Constructor and Description |
|---|---|
protected |
PluginService()
Construtor padrão.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
createService()
Constrói a instância do serviço.
|
static PluginService |
getInstance()
Retorna a instância do serviço.
|
org.java.plugin.Plugin |
getPlugin(String pluginId)
Obtém um plugin de acordo com o seu identificador.
|
Map<String,Class<?>> |
getPluginExtensionPoints(String pluginId,
String extensionPointId)
Obtém as classes que implementam os pontos de extensão de um determinado
plugin.
|
protected boolean |
has2Update(Object arg,
Object event)
Esse servico nao possui observadores.
|
protected void |
initService()
Método abstrato de inicialização do serviço.
|
protected void |
shutdownService()
Método abstrato de término do serviço
|
getBooleanProperty, getDefaultLocale, getDoubleProperty, getExternalPropertyFile, getFormattedString, getFormattedString, getInitializationDependencies, getInstance, getIntProperty, getKey, getLongProperty, getName, getOptionalString, getOptionalString, getOSPropertyPath, getSenderName, getServices, getString, getString, getStringListProperty, getStringProperty, getSystemId, getThreadLocale, getUser, getUserPermission, hasProperty, incrCounter, isActive, isEnabled, isInternalServerRequest, isLoggingNotifications, isPropertyNull, logNotification, setEnabled, setKey, setSystemId, setUserId, setUserLocalehandleException, handleFatalErrorpublic static final String SERVICE_NAME
ServiceManagerprotected PluginService()
throws ServerException
ServerException - se ocorrer falha na construção desse serviçopublic static void createService()
throws ServerException
ServerException - em caso de erro na criação d serviço.public static PluginService getInstance()
protected void initService()
throws ServerException
initService in class ServiceServerException - em caso de falhaprotected void shutdownService()
throws ServerException
shutdownService in class ServiceServerException - em caso de falha.protected boolean has2Update(Object arg, Object event)
has2Update in class csbase.remote.RemoteObjectObservablepublic org.java.plugin.Plugin getPlugin(String pluginId) throws ServerException
pluginId - identificador do pluginServerExceptionpublic Map<String,Class<?>> getPluginExtensionPoints(String pluginId, String extensionPointId) throws ServerException
pluginId - identificador do pluginextensionPointId - identificador da extensão associada aos pontos de
extensãoServerException - se houver erro ao obter o mapeamentoCopyright © 2018. All rights reserved.