# addApplicationListener method

Future<void> addApplicationListener({

1. ApplicationEventListener<ApplicationEvent>? listener,
2. String? podName,

})

Adds an `ApplicationListener` instance to the event multicaster or use podName to let Jetleaf lazily resolve the listener by pod name and fetch its instance.

This listener will be notified of all published events unless filtered explicitly by the implementation.

    multicaster.addApplicationListener(listener: MyListener(), podName: 'metricsListener');

## Implementation

    Future<void> addApplicationListener({ApplicationEventListener<ApplicationEvent>? listener, String? podName}) async {}