Package com.google.sitebricks

Examples of com.google.sitebricks.MissingTemplateException


      // the first superclass with a @Show and no @Extension is the template
      //
      while (!templateClass.isAnnotationPresent(Show.class) || templateClass.isAnnotationPresent(Decorated.class)) {
        templateClass = templateClass.getSuperclass();
        if (templateClass == Object.class) {
          throw new MissingTemplateException("Could not find tempate for " + page.pageClass() + ". You must use @Show on a superclass of an @Extension page");
        }
      }
    }

    // TODO(eric) this must be reviewed as we don't support @Show on methods combined with @Decorated pages.
View Full Code Here


      // the first superclass with a @Show and no @Extension is the template
      while (!templateClass.isAnnotationPresent(Show.class) ||
          templateClass.isAnnotationPresent(Decorated.class)) {
        templateClass = templateClass.getSuperclass();
        if (templateClass == Object.class) {
          throw new MissingTemplateException("Could not find tempate for " + page.pageClass() +
              ". You must use @Show on a superclass of an @Extension page");
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.google.sitebricks.MissingTemplateException

Copyright © 2018 www.massapicom. 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.