Class TaskApp

java.lang.Object
com.guinetik.hexafun.examples.tasks.TaskApp

public class TaskApp extends Object
Task application demonstrating the port registry feature.

Key concepts demonstrated:

  • Port registration: .withPort(TaskRepository.class, impl)
  • Port retrieval: app.port(TaskRepository.class)
  • Use cases using ports for persistence
  • Separation of domain logic from infrastructure

The repository is injected as a port, allowing easy swapping between in-memory (for testing) and persistent implementations.

  • Constructor Details

    • TaskApp

      public TaskApp(TaskRepository repository)
      Create a TaskApp with the given repository implementation.
  • Method Details