Class DefaultSourceUrlResolver

java.lang.Object
com.flowingcode.vaadin.addons.demo.DefaultSourceUrlResolver
All Implemented Interfaces:
SourceUrlResolver

public class DefaultSourceUrlResolver extends Object implements SourceUrlResolver
Implementation of SourceUrlResolver.

If no value or clazz is specified, and the demo view is annotated with GithubLink, then the source URL defaults to the location of the annotated class under src/test/java and the branch is determined from the value of GithubBranch in the demo view class (if the annotation is present) or the containing package of the demo view class. If the source URL is defaulted and no GithubBranch annotation is present either in the demo view class or its containing package, then the branch defaults to master.

Author:
Javier Godoy / Flowing Code
  • Constructor Details

    • DefaultSourceUrlResolver

      public DefaultSourceUrlResolver()
  • Method Details