Package com.github.dynamicextensionsalfresco.webscripts.annotations

Examples of com.github.dynamicextensionsalfresco.webscripts.annotations.WebScript.baseUri()


    if (beanType == null) {
      return Collections.emptyList();
    }
    final WebScript webScriptAnnotation = beanFactory.findAnnotationOnBean(beanName, WebScript.class) != null ? beanFactory
        .findAnnotationOnBean(beanName, WebScript.class) : getDefaultWebScriptAnnotation();
    final String baseUri = webScriptAnnotation.baseUri();
    if (StringUtils.hasText(baseUri) && baseUri.startsWith("/") == false) {
      throw new RuntimeException(String.format(
          "@WebScript baseUri for class '%s' does not start with a slash: '%s'", beanType, baseUri));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.