Interface SourceUrlResolver
public interface SourceUrlResolver
Interface for resolving the source URL of a demo class.
- Author:
- Javier Godoy / Flowing Code
-
Method Summary
Modifier and TypeMethodDescriptionresolveURL(TabbedDemo demo, Class<?> annotatedClass, DemoSource annotation) Resolves the source URL for a given demo class and annotation.
-
Method Details
-
resolveURL
Resolves the source URL for a given demo class and annotation.- Parameters:
demo- TheTabbedDemoinstance associated with the source.annotatedClass- The class that is annotated withDemoSource.annotation- TheDemoSourceannotation providing source metadata.- Returns:
- An
Optionalcontaining the resolved URL if available, otherwise an emptyOptional.
-