* @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));
}
}