String defaultPageName = ExtractedViewConfigDefinitionEntry.DEFAULT_PAGE_NAME;
String rootPath = ExtractedViewConfigDefinitionEntry.ROOT_PATH;
String currentBasePath;
Page pageAnnotation;
Secured securedAnnotation;
Class<?> currentClass = viewDefinitionClass;
while (currentClass != null && !Object.class.getName().equals(currentClass.getName()))
{
//security
if (currentClass.isAnnotationPresent(Secured.class))
{
securedAnnotation = currentClass.getAnnotation(Secured.class);
scannedViewConfig.addAccessDecisionVoters(securedAnnotation.value());
if (scannedViewConfig.getErrorView() == null &&
!DefaultErrorView.class.getName().equals(securedAnnotation.errorView().getName()))
{
scannedViewConfig.setErrorView(securedAnnotation.errorView());
}
}
//meta-data
scannedViewConfig.addMetaData(