org.eclipse.aether.internal.impl

## Class DefaultRepositoryEventDispatcher

- java.lang.Object
- - org.eclipse.aether.internal.impl.DefaultRepositoryEventDispatcher

- All Implemented Interfaces:
    RepositoryEventDispatcher, Service

      @Named
      @Component(role=RepositoryEventDispatcher.class)
      public class DefaultRepositoryEventDispatcher
      extends Object
      implements RepositoryEventDispatcher, Service

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultRepositoryEventDispatcher()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `DefaultRepositoryEventDispatcher` | `addRepositoryListener(RepositoryListener listener)`
    `void` | `dispatch(RepositoryEvent event)` Dispatches the specified repository event to all registered listeners.
    `void` | `initService(ServiceLocator locator)` Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.
    `DefaultRepositoryEventDispatcher` | `setLoggerFactory(LoggerFactory loggerFactory)`
    `DefaultRepositoryEventDispatcher` | `setRepositoryListeners(Collection<RepositoryListener> listeners)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultRepositoryEventDispatcher

          public DefaultRepositoryEventDispatcher()

  - ### Method Detail

    - #### setLoggerFactory

          public DefaultRepositoryEventDispatcher setLoggerFactory(LoggerFactory loggerFactory)

    - #### addRepositoryListener

          public DefaultRepositoryEventDispatcher addRepositoryListener(RepositoryListener listener)

    - #### setRepositoryListeners

          public DefaultRepositoryEventDispatcher setRepositoryListeners(Collection<RepositoryListener> listeners)

    - #### initService

          public void initService(ServiceLocator locator)

      Description copied from interface: `Service`
      Provides the opportunity to initialize this service and to acquire other services for its operation from the locator. A service must not save the reference to the provided service locator.
      Specified by:
        `initService` in interface `Service`
      Parameters:
        `locator` - The service locator, must not be `null`.

    - #### dispatch

          public void dispatch(RepositoryEvent event)

      Description copied from interface: `RepositoryEventDispatcher`
      Dispatches the specified repository event to all registered listeners.
      Specified by:
        `dispatch` in interface `RepositoryEventDispatcher`
      Parameters:
        `event` - The event to dispatch, must not be `null`.

Copyright © 2010-2014 The Eclipse Foundation. All Rights Reserved.