Package org.wicketstuff.annotation.mount

Examples of org.wicketstuff.annotation.mount.MountPath


   * @param pageClass
   * @param list
   */
  private void scanClass(Class<? extends Page> pageClass, AnnotatedMountList list)
  {
    MountPath mountPath = pageClass.getAnnotation(MountPath.class);
    if (mountPath == null)
      return;

    String path = mountPath.value();

    // default if no explicit path is provided
    if ("".equals(path))
    {
      path = getDefaultMountPath(pageClass);
    }

    list.add(getRequestMapper(path, pageClass));

    // alternates
    for (String alt : mountPath.alt())
    {
      list.add(getRequestMapper(alt, pageClass));
    }
  }
View Full Code Here

TOP

Related Classes of org.wicketstuff.annotation.mount.MountPath

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.