Interface SourceUrlResolver


public interface SourceUrlResolver
Interface for resolving the source URL of a demo class.
Author:
Javier Godoy / Flowing Code
  • Method Summary

    Modifier and Type
    Method
    Description
    resolveURL(TabbedDemo demo, Class<?> annotatedClass, DemoSource annotation)
    Resolves the source URL for a given demo class and annotation.
  • Method Details

    • resolveURL

      Optional<String> resolveURL(TabbedDemo demo, Class<?> annotatedClass, DemoSource annotation)
      Resolves the source URL for a given demo class and annotation.
      Parameters:
      demo - The TabbedDemo instance associated with the source.
      annotatedClass - The class that is annotated with DemoSource.
      annotation - The DemoSource annotation providing source metadata.
      Returns:
      An Optional containing the resolved URL if available, otherwise an empty Optional.