# register<T> abstract method

void register<T>(

1. Class<T> type,
2. BootstrapInstanceSupplier<T> supplier

)

Register a supplier for a type `T` into the registry.

If the type is already registered and the previous one was not a singleton or has not been resolved yet, it will be replaced.

Example:

    registry.register(
      Class.of(MyService),
      InstanceSupplier.from(() => MyService()),
    );

## Implementation

    void register<T>(Class<T> type, BootstrapInstanceSupplier<T> supplier);