Class MultiFileConfigurationBuilderProvider.WrapperBuilder

    • Constructor Detail

      • WrapperBuilder

        public WrapperBuilder​(Configuration conf,
                              ConfigurationBuilder<? extends Configuration> bldr)
        Creates a new instance of WrapperBuilder.
        Parameters:
        conf - the managed configuration
        bldr - the underlying builder
    • Method Detail

      • addEventListener

        public <T extends Event> void addEventListener​(EventType<T> eventType,
                                                       EventListener<? super T> listener)
        Description copied from interface: EventSource
        Adds an event listener for the specified event type. This listener is notified about events of this type and all its sub types.
        Specified by:
        addEventListener in interface EventSource
        Type Parameters:
        T - the type of events processed by this listener
        Parameters:
        eventType - the event type (must not be null)
        listener - the listener to be registered (must not be null)
      • removeEventListener

        public <T extends Event> boolean removeEventListener​(EventType<T> eventType,
                                                             EventListener<? super T> listener)
        Description copied from interface: EventSource
        Removes the event listener registration for the given event type and listener. An event listener instance may be registered multiple times for different event types. Therefore, when removing a listener the event type of the registration in question has to be specified. The return value indicates whether a registration was removed. A value of false means that no such combination of event type and listener was found.
        Specified by:
        removeEventListener in interface EventSource
        Type Parameters:
        T - the type of events processed by this listener
        Parameters:
        eventType - the event type
        listener - the event listener to be removed
        Returns:
        a flag whether a listener registration was removed