public class ServiceRegistry extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CASE_RUNTIME_DATA_SERVICE |
static String |
CASE_SERVICE |
static String |
DEFINITION_SERVICE |
static String |
DEPLOYMENT_SERVICE |
static String |
EXECUTOR_SERVICE |
static String |
MIGRATION_SERVICE |
static String |
PROCESS_ADMIN_SERVICE |
static String |
PROCESS_SERVICE |
static String |
QUERY_SERVICE |
static String |
RUNTIME_DATA_SERVICE |
protected ConcurrentHashMap<String,Object> |
services |
static String |
USER_TASK_ADMIN_SERVICE |
static String |
USER_TASK_SERVICE |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all services from the registry
|
static ServiceRegistry |
get()
Returns single instance of the registry used to register and retrieve services.
|
void |
register(String name,
Object service)
Registers service under given name.
|
void |
remove(String name)
Removes service registered under given name
|
Object |
service(String name)
Retrieves service registered under given name
|
protected volatile ConcurrentHashMap<String,Object> services
public static final String DEFINITION_SERVICE
public static final String DEPLOYMENT_SERVICE
public static final String PROCESS_SERVICE
public static final String RUNTIME_DATA_SERVICE
public static final String USER_TASK_SERVICE
public static final String QUERY_SERVICE
public static final String PROCESS_ADMIN_SERVICE
public static final String MIGRATION_SERVICE
public static final String USER_TASK_ADMIN_SERVICE
public static final String EXECUTOR_SERVICE
public static final String CASE_SERVICE
public static final String CASE_RUNTIME_DATA_SERVICE
public static ServiceRegistry get()
public void register(String name, Object service)
name
- name of the serviceservice
- actual service instancepublic void remove(String name)
name
- name of the servicepublic Object service(String name)
name
- name of the serviceIllegalArgumentException
- thrown in case service with given name is not registeredpublic void clear()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.