Improved: Change resources with proper naming convention in all plugin components.
(OFBIZ-11739) Also, made MODULE as private data member of class instead of public. Thanks Jacques for review.
This commit is contained in:
@@ -39,7 +39,7 @@ import org.apache.lucene.store.LockObtainFailedException;
|
||||
|
||||
public class DocumentIndexer extends Thread {
|
||||
|
||||
public static final String MODULE = DocumentIndexer.class.getName();
|
||||
private static final String MODULE = DocumentIndexer.class.getName();
|
||||
|
||||
private static Map<String, DocumentIndexer> documentIndexerMap = new HashMap<>();
|
||||
private LinkedBlockingQueue<LuceneDocument> documentIndexQueue = new LinkedBlockingQueue<>();
|
||||
|
||||
@@ -39,7 +39,7 @@ import org.apache.ofbiz.service.ServiceUtil;
|
||||
*/
|
||||
public class SearchEvents {
|
||||
|
||||
public static final String MODULE = SearchEvents.class.getName();
|
||||
private static final String MODULE = SearchEvents.class.getName();
|
||||
|
||||
public static String indexContentTree(HttpServletRequest request, HttpServletResponse response) {
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ import java.util.HashMap;
|
||||
*/
|
||||
public class SearchServices {
|
||||
|
||||
public static final String MODULE = SearchServices.class.getName();
|
||||
public static final String resource = "ContentUiLabels";
|
||||
private static final String MODULE = SearchServices.class.getName();
|
||||
private static final String RESOURCE = "ContentUiLabels";
|
||||
|
||||
public static Map<String, Object> indexContentTree(DispatchContext dctx, Map<String, ? extends Object> context) {
|
||||
LocalDispatcher dispatcher = dctx.getDispatcher();
|
||||
@@ -55,7 +55,7 @@ public class SearchServices {
|
||||
SearchWorker.indexContentTree(dispatcher, delegator, siteId);
|
||||
} catch (Exception e) {
|
||||
Debug.logError(e, MODULE);
|
||||
return ServiceUtil.returnError(UtilProperties.getMessage(resource,
|
||||
return ServiceUtil.returnError(UtilProperties.getMessage(RESOURCE,
|
||||
"ContentIndexingTreeError", UtilMisc.toMap("errorString", e.toString()), locale));
|
||||
}
|
||||
return ServiceUtil.returnSuccess();
|
||||
|
||||
@@ -39,7 +39,7 @@ import org.apache.ofbiz.service.LocalDispatcher;
|
||||
*/
|
||||
public final class SearchWorker {
|
||||
|
||||
public static final String MODULE = SearchWorker.class.getName();
|
||||
private static final String MODULE = SearchWorker.class.getName();
|
||||
|
||||
private static final Version LUCENE_VERSION = Version.LUCENE_8_5_0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user