@@ -94,7 +94,7 @@ public DefaultModulesLoader(AssetFileLoader assetFileLoader) {
9494 }
9595
9696 /**
97- * Use this when you don't need to load asset modules.
97+ * Use this when you don't need to load asset modules - i.e. only need to load REST modules .
9898 */
9999 public DefaultModulesLoader () {
100100 this .extensionMetadataProvider = new DefaultExtensionMetadataProvider ();
@@ -124,8 +124,8 @@ public void initializeDefaultTaskExecutor() {
124124 /**
125125 * Load modules from the given base directory, selecting modules via the given ModulesFinder, and loading them via
126126 * the given DatabaseClient. Note that asset modules will not be loaded by the DatabaseClient that's passed in here,
127- * because the /v1/ext endpoint is so slow - load assets instead via a RestApiAssetLoader or an XccAssetLoader
128- * passed into a constructor for this class .
127+ * because the /v1/ext endpoint is too slow when there are e.g. hundreds of modules or more - asset modules are
128+ * instead loaded via AssetFileLoader .
129129 */
130130 public Set <Resource > loadModules (String baseDir , ModulesFinder modulesFinder , DatabaseClient client ) {
131131 if (logger .isDebugEnabled ()) {
@@ -330,7 +330,7 @@ protected void loadAssets(Modules modules, Set<Resource> loadedModules) {
330330 }
331331
332332 if (logger .isDebugEnabled ()) {
333- logger .debug ("Loading asset modules from paths: " + Arrays .asList (paths ));
333+ logger .debug ("Loading non-REST modules from paths: " + Arrays .asList (paths ));
334334 }
335335
336336 if (includeFilenamePattern != null ) {
0 commit comments