# onSingletonReady abstract method

Future<void> onSingletonReady()

Callback interface triggered at the end of the singleton pre-instantiation phase.

Implement this interface if your singleton pod needs to react once all other singleton pods have been created and initialized by the container.

This is useful for pods that depend on the full initialization of the context, such as event broadcasters, context validators, or components that aggregate other singleton pods.

Unlike `InitializingPod` or `@PostConstruct`, which run per pod, this hook runs once globally, after all singletons are ready.

### Example

    class StartupLogger implements SmartInitializingSingleton {
      @override
      void onSingletonReady() {
        print('All singletons are initialized!');
      }
    }

The framework will call this after refreshing the context, once the entire singleton graph has been created.

Called once at the end of the singleton pre-instantiation phase.

This is the last callback point before the application context is considered fully initialized.

## Implementation

    Future<void> onSingletonReady();