Class GlobalTaskRegistrar
java.lang.Object
wtf.ranked.hytale.server.runner.registrar.task.GlobalTaskRegistrar
- All Implemented Interfaces:
Registrar<GlobalRunningTask>
@NullMarked
public final class GlobalTaskRegistrar
extends Object
implements Registrar<GlobalRunningTask>
Handles the registration and lifecycle setup of Global tasks.
Implements Registrar to provide a standardized way of
adding orchestrator tasks to the project. It automatically
configures the task's execution queue by resolving its required steps.
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalTaskRegistrar(org.gradle.api.Project project, HytalePluginExtension pluginExtension) -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(String name, Class<? extends GlobalRunningTask> value) Registers a component with a unique identifier.
-
Constructor Details
-
GlobalTaskRegistrar
-
-
Method Details
-
register
Description copied from interface:RegistrarRegisters a component with a unique identifier.- Specified by:
registerin interfaceRegistrar<GlobalRunningTask>- Parameters:
name- unique name or ID for the componentvalue- the class implementation to register
-