MotechOsgiApplicationContextCreator

public class MotechOsgiApplicationContextCreator implements OsgiApplicationContextCreator

This is the class responsible for creating Spring application contexts for Spring enabled bundles. Scans bundles and creates a org.motechproject.bundle.extender.MotechOsgiConfigurableApplicationContext for Spring enabled bundles. In most cases such bundles have their Spring configuration in their META-INF/spring directory. The context created is then managed by the Blueprint extender.

Methods

createApplicationContext

public DelegatedExecutionOsgiBundleApplicationContext createApplicationContext(BundleContext bundleContext)

setConfigurationScanner

public void setConfigurationScanner(ConfigurationScanner configurationScanner)
Parameters:
  • configurationScanner – the configuration scanner used for scanning bundles