use of org.mule.runtime.container.api.MuleModule in project mule by mulesoft.
the class TestModuleDiscoverer method discover.
@Override
public List<MuleModule> discover() {
DefaultModuleRepository containerModuleDiscoverer = new DefaultModuleRepository(delegateModuleDiscoverer);
List<MuleModule> discoveredModules = containerModuleDiscoverer.getModules();
List<MuleModule> updateModules = new ArrayList<>(discoveredModules.size());
for (MuleModule discoveredModule : discoveredModules) {
if (!discoveredModule.getPrivilegedExportedPackages().isEmpty()) {
discoveredModule = updateModuleForTests(discoveredModule);
}
updateModules.add(discoveredModule);
}
return updateModules;
}
Aggregations