Skip to content
Permalink
Browse files

Improved: Inline ‘ComponentConfig#isFileResourceLoader’

(OFBIZ-11101)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1862222 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Jun 27, 2019
1 parent 6e04320 commit 99a0d56144f70f4840b706cb258e3f9f18e96d9f
@@ -238,11 +238,6 @@ public static WebappInfo getWebAppInfo(String serverName, String contextRoot) {
return info;
}

public static boolean isFileResourceLoader(String componentName, String resourceLoaderName) throws ComponentException {
ComponentConfig cc = getComponentConfig(componentName);
return cc.isFileResourceLoader(resourceLoaderName);
}

// ========== ComponentConfig instance ==========

private final String globalName;
@@ -90,7 +90,7 @@ public URL getURL() throws GenericConfigException {

@Override
public boolean isFileResource() throws GenericConfigException {
return ComponentConfig.isFileResourceLoader(componentName, loaderName);
return ComponentConfig.getComponentConfig(componentName).isFileResourceLoader(loaderName);
}

@Override

0 comments on commit 99a0d56

Please sign in to comment.
You can’t perform that action at this time.