Class DefaultModuleTypeDetector

java.lang.Object
dev.jcputney.elearning.parser.impl.detector.DefaultModuleTypeDetector
All Implemented Interfaces:
ModuleTypeDetector

public final class DefaultModuleTypeDetector extends Object implements ModuleTypeDetector
Default implementation of the ModuleTypeDetector interface.

This class determines the type of eLearning module based on the files present in the file system. It uses a plugin system where each plugin is responsible for detecting a specific module type. Plugins are called in order of priority until one of them successfully detects a module type.

By default, the following plugins are registered:

  1. ScormDetectorPlugin - Detects SCORM 1.2 and SCORM 2004 modules
  2. Cmi5DetectorPlugin - Detects cmi5 modules
  3. XapiDetectorPlugin - Detects xAPI/TinCan modules
  4. AiccDetectorPlugin - Detects AICC modules

Additional plugins can be registered using the registerPlugin(ModuleTypeDetectorPlugin) method.