public class PluginService extends Service
| Modifier and Type | Field and Description |
|---|---|
static java.lang.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(java.lang.String pluginId)
Obtém um plugin de acordo com o seu identificador.
|
java.util.Map<java.lang.String,java.lang.Class<?>> |
getPluginExtensionPoints(java.lang.String pluginId,
java.lang.String extensionPointId)
Obtém as classes que implementam os pontos de extensão de um determinado
plugin.
|
protected boolean |
has2Update(java.lang.Object arg,
java.lang.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, setUserIdhandleException, handleFatalErrorpublic static final java.lang.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(java.lang.Object arg,
java.lang.Object event)
has2Update in class csbase.remote.RemoteObjectObservablepublic org.java.plugin.Plugin getPlugin(java.lang.String pluginId)
throws ServerException
pluginId - identificador do pluginServerExceptionpublic java.util.Map<java.lang.String,java.lang.Class<?>> getPluginExtensionPoints(java.lang.String pluginId,
java.lang.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 © 2016. All Rights Reserved.