configure abstract method

void configure(
  1. ApplicationContext context
)

Configure the module with the given ApplicationContext.

This method is invoked during application initialization. Implementations should use the provided context to:

  • Register beans or singletons with the PodFactory.
  • Attach application event listeners.
  • Add lifecycle processors to customize startup or shutdown behavior.

Example

class LoggingModule implements ApplicationModule {
  @override
  void configure(ApplicationContext context) {
    context.getPodFactory().registerSingleton('logger', Logger());
    context.addLifecycleProcessor(LoggingLifecycleProcessor());
  }
}

Implementation

void configure(ApplicationContext context);