Module application

Module application 

Source
Expand description

Application layer module for use case orchestration.

The application layer coordinates between the domain and ports layers, orchestrating use cases without containing business logic itself. This module provides traits for directives, directive handlers, and query handlers, supporting the CQRS (Command Query Responsibility Segregation) pattern. It also provides the Application trait for marking top-level entry points and coordinating system lifecycle.

Revision History

  • 2025-10-12T17:48:00Z @AI: Add Application trait for marking entry points.
  • 2025-10-01T00:01:00Z @AI: Renamed Command to Directive for better intent representation.
  • 2025-10-01T00:00:00Z @AI: Initial Phase 1 application module structure.

Re-exports§

pub use application::Application;
pub use directive::Directive;
pub use directive_handler::DirectiveHandler;
pub use query_handler::QueryHandler;

Modules§

application
Application trait for marking top-level entry points.
directive
Directive trait for write operations (CQRS pattern).
directive_handler
DirectiveHandler trait for executing directives.
query_handler
QueryHandler trait for executing queries.