# addCloseListener abstract method

void addCloseListener(

1. ApplicationEventListener<BootstrapContextClosedEvent> listener

)

Adds an ApplicationEventListener that is called when the BootstrapContext is closed and the ApplicationContext has been fully prepared.

Useful for cleanup or post-configuration logic.

Example:

    registry.addCloseListener((event) {
      print("Context closed: ${event.applicationContext}");
    });

## Implementation

    void addCloseListener(ApplicationEventListener<BootstrapContextClosedEvent> listener);