org.apache.commons.configuration2.builder

## Interface EventListenerProvider

- All Known Implementing Classes:
    EventListenerParameters

      public interface EventListenerProvider

  Definition of an interface that is evaluated by a `ConfigurationBuilder` to initialize event listeners.

  This interface allows a convenient initialization of a configuration builder with event listeners to be registered at the managed configuration object. The `configure()` method of `BasicConfigurationBuilder` checks whether a parameters object passed to it implements this interface. If this is the case, all event listeners defined by the object are added to the internal list managed by the builder. They are then automatically registered at the managed configuration when it is created. When using a corresponding implementation the configuration of event listeners can be done in the same fluent API style as the other initialization of the configuration builder.

  Since:
    2.0
  Version:
    $Id: EventListenerProvider.java 1624601 2014-09-12 18:04:36Z oheger $

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `EventListenerList` | `getListeners()` Returns an `EventListenerList` object with information about event listener registrations.

- - ### Method Detail

    - #### getListeners

          EventListenerList getListeners()

      Returns an `EventListenerList` object with information about event listener registrations. All listeners contained in this object are added to the processing `ConfigurationBuilder`.
      Returns:
        the `EventListenerList` with event listener registrations (must not be null)

Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.