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

org.opentcs.components.Lifecycle Maven / Gradle / Ivy

// SPDX-FileCopyrightText: The openTCS Authors
// SPDX-License-Identifier: MIT
package org.opentcs.components;

/**
 * Defines methods for controlling a generic component's lifecycle.
 */
public interface Lifecycle {

  /**
   * (Re-)Initializes this component before it is being used.
   */
  void initialize();

  /**
   * Checks whether this component is initialized.
   *
   * @return true if, and only if, this component is initialized.
   */
  boolean isInitialized();

  /**
   * Terminates the instance and frees resources.
   */
  void terminate();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy