Class StepTaskRegistrar

java.lang.Object
wtf.ranked.hytale.server.runner.registrar.task.StepTaskRegistrar
All Implemented Interfaces:
Registrar<TaskStep>

@NullMarked public final class StepTaskRegistrar extends Object implements Registrar<TaskStep>
Registrar implementation responsible for initializing internal lifecycle steps.

This class serves as the bridge between the Gradle TaskContainer and the internal TaskStepRegistry. When a step is registered:

  1. The task is formally registered in the Gradle build lifecycle.
  2. The task's class is associated with its identifier in the TaskStepRegistry for later resolution by the TaskStepLoader.
  • Constructor Details

    • StepTaskRegistrar

      public StepTaskRegistrar()
  • Method Details

    • register

      public void register(String identifier, Class<? extends TaskStep> value)
      Description copied from interface: Registrar
      Registers a component with a unique identifier.
      Specified by:
      register in interface Registrar<TaskStep>
      Parameters:
      identifier - unique name or ID for the component
      value - the class implementation to register