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

io.github.mike10004.containment.lifecycle.Lifecycle Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version
package io.github.mike10004.containment.lifecycle;

/**
 * Interface of a service that provides methods to execute the full lifecycle of a resource.
 * A lifecycle includes the commission and decommission actions.
 * @param  provided resource type
 */
public interface Lifecycle {

    /**
     * Commissions the resource.
     * @return the resource
     * @throws Exception on error
     */
    D commission() throws Exception;

    /**
     * Decommissions the resource.
     */
    void decommission();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy