Project: springxd
Issue XD-2197: Create ModuleFactory
ModuleFactory is responsible for determining how the Module application context is created from available sources at the resource location exposed via the ModuleDefinition. The factory creates the application context and creates a SimpleModule or CompositeModule as appropropriate. For example, if an XML file is present, it is assumed to be the bean definition file used to create a CXMLAC. If no XML file is present, inspect the properties file for the existence of well-known properties such as base-package-name for component scanning for an @Configuration, or a module-class-name for an Annotated POJO based module (see XD-2100). The MF is also responsible for creating composite modules. Also includes Module refactoring, add getApplicationContext() and probably setApplicationContext(). Also refactor CompositeModule code to use boot SpringApplicationBuilder
Story points: 5