Class Prometheus

java.lang.Object
fr.olympus.prometheus.Prometheus

public class Prometheus extends Object
Main class for the Prometheus framework. Provides methods for initializing the framework, registering components, and accessing data.
  • Method Details

    • init

      public static Prometheus init()
      Get the singleton instance of Prometheus
      Returns:
      Prometheus instance
      Throws:
      IllegalStateException - if Prometheus is already initialized
    • autoRegister

      public static void autoRegister(RegisterType type, String... basePackages)
      Automatically register components by scanning the specified base packages for annotated classes.
      Parameters:
      type - The type of components to register. see RegisterType.
      basePackages - The base packages to scan for components.
    • getData

      public static PrometheusData getData()
      Get the PrometheusData instance
      Returns:
      PrometheusData instance