Author: mthl
Date: Thu Jun 27 14:30:25 2019
New Revision: 1862222
URL:
http://svn.apache.org/viewvc?rev=1862222&view=revLog:
Improved: Inline ‘ComponentConfig#isFileResourceLoader’
(OFBIZ-11101)
Modified:
ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/component/ComponentConfig.java
ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/component/ComponentResourceHandler.java
Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/component/ComponentConfig.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/component/ComponentConfig.java?rev=1862222&r1=1862221&r2=1862222&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/component/ComponentConfig.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/component/ComponentConfig.java Thu Jun 27 14:30:25 2019
@@ -238,11 +238,6 @@ public final class ComponentConfig {
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;
Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/component/ComponentResourceHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/component/ComponentResourceHandler.java?rev=1862222&r1=1862221&r2=1862222&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/component/ComponentResourceHandler.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/component/ComponentResourceHandler.java Thu Jun 27 14:30:25 2019
@@ -90,7 +90,7 @@ public class ComponentResourceHandler im
@Override
public boolean isFileResource() throws GenericConfigException {
- return ComponentConfig.isFileResourceLoader(componentName, loaderName);
+ return ComponentConfig.getComponentConfig(componentName).isFileResourceLoader(loaderName);
}
@Override