# ConfigurableBootstrapContext class abstract interface

A configurable bootstrap context that acts as both a BootstrapRegistry and a BootstrapContext.

This interface is typically used internally during application startup to allow registration and retrieval of bootstrapping dependencies.

Once bootstrapping is complete, it may be exposed as a read-only BootstrapContext to consumers.

Example usage:

    final context = DefaultConfigurableBootstrapContext();
    context.register(MyService, () => MyServiceImpl());
    final service = context.get(MyService);

Inheritance
  - Object
  - BootstrapRegistry
  - ConfigurableBootstrapContext
Implemented types
  - BootstrapContext

## Properties

hashCode → int
  The hash code for this object.
  no setter inherited
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited

## Methods

addCloseListener(ApplicationEventListener<BootstrapContextClosedEvent> listener) → void
  Adds an ApplicationEventListener that is called when the BootstrapContext is closed and the ApplicationContext has been fully prepared.
  inherited
close(ConfigurableApplicationContext applicationContext) → void
  Closes the bootstrap context by firing a `BootstrapContextClosedEvent`.
  inherited
get<T>(Class<T> type, {T? orElse, Supplier<T>? orSupply}) → T
  Returns an instance of the given `type` if it has been registered in the context. The instance will be lazily created on first access.
  inherited
getApplicationClass() → Class<Object>
  Returns the application class registered in this context.
  inherited
getOrThrow<T, X extends Throwable>(Class<T> type, Supplier<X> exceptionSupplier) → T
  Returns an instance of the given `type` if registered.
  inherited
getSupplier<T>(Class<T> type) → BootstrapInstanceSupplier<T>?
  Returns the registered BootstrapInstanceSupplier for a type `T`, or `null` if not registered.
  inherited
isClassRegistered<T>(Class<T> type) → bool
  Checks whether a `type` has already been registered in this context.
  inherited
isRegistered<T>(Class<T> type) → bool
  Checks whether a supplier for type `T` is already registered.
  inherited
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
register<T>(Class<T> type, BootstrapInstanceSupplier<T> supplier) → void
  Register a supplier for a type `T` into the registry.
  inherited
setApplicationClass(Class<Object> applicationClass) → void
  Sets the application class in this context.
  inherited
toString() → String
  A string representation of this object.
  inherited

## Operators

operator ==(Object other) → bool
  The equality operator.
  inherited