use of org.mycore.common.xml.MCRURIResolver in project mycore by MyCoRe-Org.
the class MCRStartupHandler method startUp.
public static void startUp(ServletContext servletContext) {
// setup configuration
MCRConfigurationDirSetup dirSetup = new MCRConfigurationDirSetup();
dirSetup.startUp(servletContext);
LOGGER.info("I have these components for you: {}", MCRRuntimeComponentDetector.getAllComponents());
LOGGER.info("I have these mycore components for you: {}", MCRRuntimeComponentDetector.getMyCoReComponents());
LOGGER.info("I have these app modules for you: {}", MCRRuntimeComponentDetector.getApplicationModules());
if (servletContext != null) {
LOGGER.info("Library order: {}", servletContext.getAttribute(ServletContext.ORDERED_LIBS));
}
MCRConfiguration.instance().getStrings("MCR.Startup.Class", Collections.emptyList()).stream().map(MCRStartupHandler::getAutoExecutable).sorted((o1, o2) -> Integer.compare(o2.getPriority(), o1.getPriority())).forEachOrdered(autoExecutable -> startExecutable(servletContext, autoExecutable));
// initialize MCRURIResolver
MCRURIResolver.init(servletContext);
}
Aggregations