net.nemerosa.ontrack.model.support.StartupService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.support;
/**
* Implement this interface and declare the implementation as a @Component
* if you want to execute some code at start-up, after the database has been initialized
* or migrated.
*/
public interface StartupService {
int SYSTEM = 1;
int SYSTEM_REGISTRATION = 50;
int JOB_REGISTRATION = 100;
/**
* Display name (used for tracing information)
*/
String getName();
/**
* Services can be ordered
*/
int startupOrder();
/**
* Starts the service
*/
void start();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy