All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.seedstack.business.domain.DomainEventPublisher Maven / Gradle / Ivy

/*
 * Copyright © 2013-2024, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.business.domain;

/**
 * The domain event publisher provides the ability to publish {@link DomainEvent} instances to be
 * handled by {@link DomainEventHandler} implementations.
 *
 * @see DomainEvent
 * @see DomainEventHandler
 */
public interface DomainEventPublisher {

    /**
     * Publishes an event.
     *
     * @param event the published event instance.
     * @param    the event type.
     */
     void publish(E event);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy