Assert.notNull(servletContext);
ModuleManagementFacade factory = (ModuleManagementFacade) servletContext
.getAttribute(WebConstants.IMPALA_FACTORY_ATTRIBUTE);
if (factory == null) {
throw new ConfigurationException(
"No instance of "
+ ModuleManagementFacade.class.getName()
+ " found. Your context loader needs to be configured to create an instance of this class and attach it to the ServletContext using the attribue WebConstants.IMPALA_FACTORY_ATTRIBUTE");
}
ModuleDefinitionSource source = (ModuleDefinitionSource) servletContext
.getAttribute(WebConstants.MODULE_DEFINITION_SOURCE_ATTRIBUTE);
if (source == null) {
throw new ConfigurationException(
"No instance of "
+ ModuleDefinitionSource.class.getName()
+ " found. Your context loader needs to be configured to create an instance of this class and attach it to the ServletContext using the attribue WebConstants.MODULE_DEFINITION_SOURCE_ATTRIBUTE");
}