se.citerus.dddsample.application
Interface ApplicationEvents

All Known Implementing Classes:
JmsApplicationEventsImpl

public interface ApplicationEvents

This interface provides a way to let other parts of the system know about events that have occurred.

It may be implemented synchronously or asynchronously, using for example JMS.


Method Summary
 void cargoHasArrived(Cargo cargo)
          A cargo has arrived at its final destination.
 void cargoWasHandled(HandlingEvent event)
          A cargo has been handled.
 void cargoWasMisdirected(Cargo cargo)
          A cargo has been misdirected.
 void receivedHandlingEventRegistrationAttempt(HandlingEventRegistrationAttempt attempt)
          A handling event regitration attempt is received.
 

Method Detail

cargoWasHandled

void cargoWasHandled(HandlingEvent event)
A cargo has been handled.

Parameters:
event - handling event

cargoWasMisdirected

void cargoWasMisdirected(Cargo cargo)
A cargo has been misdirected.

Parameters:
cargo - cargo

cargoHasArrived

void cargoHasArrived(Cargo cargo)
A cargo has arrived at its final destination.

Parameters:
cargo - cargo

receivedHandlingEventRegistrationAttempt

void receivedHandlingEventRegistrationAttempt(HandlingEventRegistrationAttempt attempt)
A handling event regitration attempt is received.

Parameters:
attempt - handling event registration attempt


Copyright © 2009. All Rights Reserved.