Interface Registrar<C>

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

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

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

    • register

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