| /* |
| * |
| * Copyright (c) 2011 - 2017 - Loetz GmbH & Co KG, 69115 Heidelberg, Germany |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Initial contribution: |
| * Loetz GmbH & Co. KG |
| * |
| */ |
| package org.eclipse.osbp.runtime.common.event; |
| |
| |
| /** |
| * The Interface IEventDispatcher. |
| */ |
| public interface IEventDispatcher { |
| |
| /** |
| * Adds the event receiver. |
| * |
| * @param receiver the receiver |
| */ |
| void addEventReceiver(Receiver receiver); |
| |
| /** |
| * Removes the event receiver. |
| * |
| * @param receiver the receiver |
| */ |
| void removeEventReceiver(Receiver receiver); |
| |
| /** |
| * Send event. |
| * |
| * @param event the event |
| */ |
| void sendEvent(EventDispatcherEvent event); |
| |
| /** |
| * The Interface Receiver. |
| */ |
| public interface Receiver { |
| |
| /** |
| * Receive event. |
| * |
| * @param event the event |
| */ |
| void receiveEvent(EventDispatcherEvent event); |
| } |
| |
| /** |
| * The Interface Sender. |
| */ |
| public interface Sender { |
| } |
| |
| // public interface Global extends IEventDispatcher { |
| // |
| // } |
| // |
| // public interface Provider { |
| // IEventDispatcher getDispatcher(); |
| // } |
| } |