use of uk.ac.ed.ph.jqtiplus.JqtiExtensionPackage in project OpenOLAT by OpenOLAT.
the class QTI21ServiceImpl method afterPropertiesSet.
@Override
public void afterPropertiesSet() throws Exception {
final List<JqtiExtensionPackage<?>> extensionPackages = new ArrayList<JqtiExtensionPackage<?>>();
/* Enable MathAssess extensions if requested */
if (qtiModule.isMathAssessExtensionEnabled()) {
log.info("Enabling the MathAssess extensions");
extensionPackages.add(new MathAssessExtensionPackage(xsltStylesheetCache));
extensionPackages.add(new OpenOLATExtensionPackage(xsltStylesheetCache));
}
jqtiExtensionManager = new JqtiExtensionManager(extensionPackages);
xsltStylesheetManager = new XsltStylesheetManager(new ClassPathResourceLocator(), xsltStylesheetCache);
jqtiExtensionManager.init();
Cacher cacher = coordinatorManager.getInstance().getCoordinator().getCacher();
assessmentTestsCache = cacher.getCache("QTIWorks", "assessmentTests");
assessmentItemsCache = cacher.getCache("QTIWorks", "assessmentItems");
}
use of uk.ac.ed.ph.jqtiplus.JqtiExtensionPackage in project openolat by klemens.
the class QTI21ServiceImpl method afterPropertiesSet.
@Override
public void afterPropertiesSet() throws Exception {
final List<JqtiExtensionPackage<?>> extensionPackages = new ArrayList<JqtiExtensionPackage<?>>();
/* Enable MathAssess extensions if requested */
if (qtiModule.isMathAssessExtensionEnabled()) {
log.info("Enabling the MathAssess extensions");
extensionPackages.add(new MathAssessExtensionPackage(xsltStylesheetCache));
extensionPackages.add(new OpenOLATExtensionPackage(xsltStylesheetCache));
}
jqtiExtensionManager = new JqtiExtensionManager(extensionPackages);
xsltStylesheetManager = new XsltStylesheetManager(new ClassPathResourceLocator(), xsltStylesheetCache);
jqtiExtensionManager.init();
Cacher cacher = coordinatorManager.getInstance().getCoordinator().getCacher();
assessmentTestsCache = cacher.getCache("QTIWorks", "assessmentTests");
assessmentItemsCache = cacher.getCache("QTIWorks", "assessmentItems");
}
Aggregations