Package fr.olympus.prometheus
Class Prometheus
java.lang.Object
fr.olympus.prometheus.Prometheus
Main class for the Prometheus framework.
Provides methods for initializing the framework, registering components, and accessing data.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidautoRegister(RegisterType type, String... basePackages) Automatically register components by scanning the specified base packages for annotated classes.static PrometheusDatagetData()Get the PrometheusData instancestatic Prometheusinit()Get the singleton instance of Prometheus
-
Method Details
-
init
Get the singleton instance of Prometheus- Returns:
- Prometheus instance
- Throws:
IllegalStateException- if Prometheus is already initialized
-
autoRegister
Automatically register components by scanning the specified base packages for annotated classes.- Parameters:
type- The type of components to register. seeRegisterType.basePackages- The base packages to scan for components.
-
getData
Get the PrometheusData instance- Returns:
- PrometheusData instance
-