Package org.wicketstuff.wicket.mount.annotation

Examples of org.wicketstuff.wicket.mount.annotation.AutoMount


  @Override
  protected void setPackagesToScan(AutoMountContext context)
  {
    final String[] packagesToScan;
    AutoMount annotation = context.getAppAnnotation(AutoMount.class);
    if (annotation != null)
    {
      packagesToScan = annotation.packagesToScan();
    } else
    {
      packagesToScan = new String[]{};
    }
    if (packagesToScan.length == 0)
View Full Code Here


  }

  @Override
  protected String getDefaultRootPath(AutoMountContext context, TypeElement elem)
  {
    AutoMount annotation = context.getAppAnnotation(AutoMount.class);
    if (annotation != null)
    {
      return annotation.defaultRoot().replaceAll("^/+|/+$", "");
    }
    return "";
  }
View Full Code Here

  @Override
  protected String getDefaultMimeExtension(AutoMountContext context, TypeElement elem)
  {
    String mimeExtension = "";
    AutoMount annotation = context.getAppAnnotation(AutoMount.class);
    if (annotation != null)
    {
      mimeExtension = annotation.mimeExtension();
    }
    if (!mimeExtension.isEmpty() && !mimeExtension.startsWith("."))
    {
      mimeExtension = "." + mimeExtension;
    }
View Full Code Here

TOP

Related Classes of org.wicketstuff.wicket.mount.annotation.AutoMount

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.