use of org.entando.entando.aps.system.init.util.ComponentLoader in project entando-core by entando.
the class ComponentManager method loadComponents.
protected void loadComponents() throws ApsSystemException {
try {
ComponentLoader loader = new ComponentLoader(this.getLocationPatterns(), this.getPostProcessClasses());
Map<String, Component> componentMap = loader.getComponents();
List<Component> components = new ArrayList<Component>();
components.addAll(componentMap.values());
List<Component> orderedComponents = this.getOrderedComponents(components);
this.setComponents(orderedComponents);
} catch (Throwable t) {
_logger.error("Error loading components definitions", t);
throw new ApsSystemException("Error loading components definitions", t);
}
}
Aggregations