Package fr.olympus.prometheus.register
Class AutoRegistrar
java.lang.Object
fr.olympus.prometheus.register.AutoRegistrar
Utility class for automatically registering materials, factories, and process recipes
by scanning specified base packages for annotated classes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(RegisterType type, String... basePackages) Registers components based on the specified type and base packages.
-
Method Details
-
register
Registers components based on the specified type and base packages.- Parameters:
type- The type of components to register. seeRegisterType.basePackages- The base packages to scan for components.- Throws:
IllegalArgumentException- if type is null or basePackages is null/empty.IllegalStateException- if any annotated class is invalid or cannot be instantiated.
-