Class AutoRegistrar

java.lang.Object
fr.olympus.prometheus.register.AutoRegistrar

public final class AutoRegistrar extends Object
Utility class for automatically registering materials, factories, and process recipes by scanning specified base packages for annotated classes.
  • Method Details

    • register

      public static void register(RegisterType type, String... basePackages)
      Registers components based on the specified type and base packages.
      Parameters:
      type - The type of components to register. see RegisterType.
      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.