Interface PathResolver

All Known Implementing Classes:
PathResolverImpl

public interface PathResolver
Port for resolving paths in different architecture types. Handles placeholder substitution and path validation.
  • Method Details

    • resolveAdapterPath

      Path resolveAdapterPath(ArchitectureType architecture, String adapterType, String name, Map<String,String> context)
      Resolves the path for an adapter based on architecture configuration.
      Parameters:
      architecture - The architecture type
      adapterType - The adapter type (driven or driving)
      name - The adapter name
      context - Additional context for placeholder substitution (basePackage, module, etc.)
      Returns:
      The resolved path
    • validatePath

      ValidationResult validatePath(Path path, ArchitectureType architecture)
      Validates that a path respects layer dependency rules.
      Parameters:
      path - The path to validate
      architecture - The architecture type
      Returns:
      ValidationResult indicating if path is valid
    • substitutePlaceholders

      String substitutePlaceholders(String template, Map<String,String> context)
      Substitutes placeholders in a path template with actual values.
      Parameters:
      template - The path template with placeholders
      context - Map of placeholder names to values
      Returns:
      The path with placeholders substituted