Interface Registrar<ValueClass>
- Type Parameters:
ValueClass- the base type of the component being registered
- All Known Implementing Classes:
GlobalTaskRegistrar, GradleServiceRegistrar
public interface Registrar<ValueClass>
Generic interface for registering plugin components.
-
Method Summary
Modifier and TypeMethodDescriptionvoidregister(@NonNull String identifier, @NonNull Class<? extends ValueClass> valueClass) Registers a component with a unique identifier.
-
Method Details
-
register
Registers a component with a unique identifier.- Parameters:
identifier- unique name or ID for the componentvalueClass- the class implementation to register
-