
io.github.mike10004.containment.lifecycle.Lifecycle Maven / Gradle / Ivy
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