All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.model.support.StartupService Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
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