Changeset 4988
- Timestamp:
- 04/16/14 09:48:43 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/VloWicketApplication.java
r4928 r4988 4 4 import eu.clarin.cmdi.vlo.service.XmlTransformationService; 5 5 import eu.clarin.cmdi.vlo.service.solr.SolrDocumentService; 6 import eu.clarin.cmdi.vlo.wicket.pages.AboutPage; 6 7 import eu.clarin.cmdi.vlo.wicket.pages.AllFacetValuesPage; 7 8 import eu.clarin.cmdi.vlo.wicket.pages.FacetedSearchPage; … … 55 56 public void init() { 56 57 super.init(); 58 59 // register global resource bundles (from .properties files) 60 registerResourceBundles(); 61 62 // mount pages on URL paths 63 mountPages(); 64 65 // configure Wicket cache according to parameters set in VloConfig 66 setupCache(); 67 } 68 69 private void registerResourceBundles() { 57 70 // this listener will inject any spring beans that need to be autowired 58 71 getComponentInstantiationListeners().add(new SpringComponentInjector(this, applicationContext)); … … 63 76 // register the resource of application properties (version information filtered at build time) 64 77 getResourceSettings().getStringResourceLoaders().add(new BundleStringResourceLoader("application")); 78 } 65 79 80 private void mountPages() { 66 81 // Faceted search page (simple search is on root) 67 82 mountPage("/search", FacetedSearchPage.class); … … 73 88 // because it's a filter on the facet list) 74 89 mountPage("/values/${" + AllFacetValuesPage.SELECTED_FACET_PARAM + "}", AllFacetValuesPage.class); 90 // About page 91 mountPage("/about", AboutPage.class); 92 } 75 93 94 private void setupCache() { 76 95 // configure cache by applying the vlo configuration settings to it 77 96 final int pagesInApplicationCache = vloConfig.getPagesInApplicationCache();
Note: See TracChangeset
for help on using the changeset viewer.