public class ServiceManager extends Object
| Constructor and Description |
|---|
ServiceManager() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,AreaTreeOperator> |
findAreaTreeOperators()
Discovers all the AreaTreeOperator service implementations.
|
static Map<String,AreaTreeProvider> |
findAreaTreeProviders()
Discovers all the AreaTreeProvider service implementations.
|
static Map<String,BoxTreeProvider> |
findBoxTreeProviders()
Discovers all the BoxTreeProvider service implementations.
|
static List<BrowserPlugin> |
findBrowserPlugins()
Discovers all the BrowserPlugin service implementations.
|
static Map<String,LogicalTreeProvider> |
findLogicalTreeProviders()
Discovers all the LogicalTreeProvider service implementations.
|
static Map<String,PageStorage> |
findPageStorages()
Discovers all the PageStorage service implementations.
|
static ParametrizedOperation |
findParmetrizedService(String id)
Finds a parametrized service based on its ID.
|
static Map<String,ScriptObject> |
findScriptObjects()
Discovers all the ScriptObject service implementations.
|
static Map<String,Object> |
getServiceParams(ParametrizedOperation op)
Obtains the values of all the parametres of the given operation.
|
static <T extends Service> |
loadServicesByType(Class<T> clazz)
Discovers the registered services of the given class.
|
static void |
setServiceParams(ParametrizedOperation op,
Map<String,Object> params)
Sets the operation parametres based on a map of values.
|
public static List<BrowserPlugin> findBrowserPlugins()
public static Map<String,BoxTreeProvider> findBoxTreeProviders()
id to the appropriate implementation.public static Map<String,AreaTreeProvider> findAreaTreeProviders()
id to the appropriate implementation.public static Map<String,LogicalTreeProvider> findLogicalTreeProviders()
id to the appropriate implementation.public static Map<String,AreaTreeOperator> findAreaTreeOperators()
id to the appropriate implementation.public static Map<String,ScriptObject> findScriptObjects()
id to the appropriate implementation.public static Map<String,PageStorage> findPageStorages()
id to the appropriate implementation.public static <T extends Service> Map<String,T> loadServicesByType(Class<T> clazz)
clazz - the class of the required servicespublic static void setServiceParams(ParametrizedOperation op, Map<String,Object> params)
op - The operation whose parametres should be setparams - A map that assigns values to parameter namespublic static Map<String,Object> getServiceParams(ParametrizedOperation op)
op - The operation whose parametres should be setpublic static ParametrizedOperation findParmetrizedService(String id)
id - the service ID.null when the service does not exist.Copyright © 2018. All rights reserved.