# initialize abstract method

Future<void> initialize(

1. BootstrapRegistry registry

)

Strategy interface used to programmatically register bootstrap instances into a BootstrapRegistry before the application context is refreshed.

Implementations of this interface are typically used to pre-register pods or resources (like loggers, metrics, or external connections) that need to be available early in the application's lifecycle.

This is useful in scenarios where specific types or suppliers must be initialized before the full application context is available.

## Example:

    class MyRegistryInitializer implements BootstrapRegistryInitializer {
      @override
      void initialize(BootstrapRegistry registry) {
        registry.register(MyService.classType, (ctx) => MyService());
      }
    }

To use it, register the initializer before launching the application context, or during your application bootstrap phase.

## Implementation

    Future<void> initialize(BootstrapRegistry registry);