Interface Registrar<C>

Type Parameters:
C - the base type of the component being registered
All Known Implementing Classes:
GlobalTaskRegistrar, GradleServiceRegistrar, StepTaskRegistrar

@NullMarked public interface Registrar<C>
Generic interface for registering plugin components.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    register(String identifier, Class<? extends C> value)
    Registers a component with a unique identifier.
  • Method Details

    • register

      void register(String identifier, Class<? extends C> value)
      Registers a component with a unique identifier.
      Parameters:
      identifier - unique name or ID for the component
      value - the class implementation to register