Search in sources :

Example 1 with HomePageMapper

use of org.apache.wicket.core.request.mapper.HomePageMapper in project webanno by webanno.

the class WicketApplicationBase method initDefaultPageMounts.

protected void initDefaultPageMounts() {
    mountPage("/login.html", getSignInPageClass());
    mountPage("/welcome.html", getHomePage());
    // Mount the other pages via @MountPath annotation on the page classes
    AnnotatedMountList mounts = new AnnotatedMountScanner().scanPackage("de.tudarmstadt.ukp");
    for (IRequestMapper mapper : mounts) {
        if (mapper instanceof HomePageMapper) {
            System.out.println(mapper);
        }
    }
    mounts.mount(this);
}
Also used : HomePageMapper(org.apache.wicket.core.request.mapper.HomePageMapper) AnnotatedMountScanner(org.wicketstuff.annotation.scan.AnnotatedMountScanner) AnnotatedMountList(org.wicketstuff.annotation.scan.AnnotatedMountList) IRequestMapper(org.apache.wicket.request.IRequestMapper)

Aggregations

HomePageMapper (org.apache.wicket.core.request.mapper.HomePageMapper)1 IRequestMapper (org.apache.wicket.request.IRequestMapper)1 AnnotatedMountList (org.wicketstuff.annotation.scan.AnnotatedMountList)1 AnnotatedMountScanner (org.wicketstuff.annotation.scan.AnnotatedMountScanner)1