Package org.openremote.manager.setup
Class SetupService
java.lang.Object
org.openremote.manager.setup.SetupService
- All Implemented Interfaces:
org.openremote.model.ContainerService
Executes setup tasks for a clean installation when the application starts.
This service is disabled when PersistenceService.isCleanInstall() is false.
First, this service will load an implementation of SetupTasks from the
classpath using ServiceLoader. If multiple providers are found, an error
is raised. If a provider is found, its tasks will be used on top of KeycloakCleanSetup
and KeycloakInitSetup which are auto-loaded if keycloak is enabled.
-
Field Summary
FieldsFields inherited from interface org.openremote.model.ContainerService
DEFAULT_PRIORITY, HIGH_PRIORITY, LOW_PRIORITY, MED_PRIORITY -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
tasks
-
-
Constructor Details
-
SetupService
public SetupService()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceorg.openremote.model.ContainerService
-
init
- Specified by:
initin interfaceorg.openremote.model.ContainerService- Throws:
Exception
-
start
public void start(org.openremote.model.Container container) - Specified by:
startin interfaceorg.openremote.model.ContainerService
-
stop
public void stop(org.openremote.model.Container container) - Specified by:
stopin interfaceorg.openremote.model.ContainerService
-
getTaskOfType
-
toString
-