Class ServiceRegistry


  • public class ServiceRegistry
    extends Object
    Single ServiceRegistry that allows any service to register itself so other components can easily look them up.
    • Field Detail

      • DEFINITION_SERVICE

        public static final String DEFINITION_SERVICE
      • DEPLOYMENT_SERVICE

        public static final String DEPLOYMENT_SERVICE
      • PROCESS_SERVICE

        public static final String PROCESS_SERVICE
      • RUNTIME_DATA_SERVICE

        public static final String RUNTIME_DATA_SERVICE
      • USER_TASK_SERVICE

        public static final String USER_TASK_SERVICE
      • QUERY_SERVICE

        public static final String QUERY_SERVICE
      • PROCESS_ADMIN_SERVICE

        public static final String PROCESS_ADMIN_SERVICE
      • MIGRATION_SERVICE

        public static final String MIGRATION_SERVICE
      • USER_TASK_ADMIN_SERVICE

        public static final String USER_TASK_ADMIN_SERVICE
      • EXECUTOR_SERVICE

        public static final String EXECUTOR_SERVICE
    • Method Detail

      • get

        public static ServiceRegistry get()
        Returns single instance of the registry used to register and retrieve services.
        Returns:
        instance of the registry
      • register

        public void register​(String name,
                             Object service)
        Registers service under given name.
        Parameters:
        name - name of the service
        service - actual service instance
      • remove

        public void remove​(String name)
        Removes service registered under given name
        Parameters:
        name - name of the service
      • service

        public Object service​(String name)
        Retrieves service registered under given name
        Parameters:
        name - name of the service
        Returns:
        instance of the service registered with given name
        Throws:
        IllegalArgumentException - thrown in case service with given name is not registered
      • clear

        public void clear()
        Removes all services from the registry