Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getScriptEngineFactory (0.15 sec)

  1. src/main/java/org/codelibs/fess/indexer/DocBoostMatcher.java

        public boolean match(final Map<String, Object> map) {
    
            if (map == null || map.isEmpty() || matchExpression == null) {
                return false;
            }
    
            final Object value = ComponentUtil.getScriptEngineFactory().getScriptEngine(scriptType).evaluate(matchExpression, map);
            if (value instanceof Boolean) {
                return (Boolean) value;
            }
    
            return false;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/job/impl/ScriptExecutor.java

        @Override
        public Object execute(final String scriptType, final String script) {
            final Map<String, Object> params = new HashMap<>();
            params.put("executor", this);
    
            return ComponentUtil.getScriptEngineFactory().getScriptEngine(scriptType).evaluate(script, params);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/script/AbstractScriptEngine.java

     */
    package org.codelibs.fess.script;
    
    import org.codelibs.fess.util.ComponentUtil;
    
    public abstract class AbstractScriptEngine implements ScriptEngine {
    
        public void register() {
            ComponentUtil.getScriptEngineFactory().add(getName(), this);
        }
    
        protected abstract String getName();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 920 bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/PathMappingHelper.java

                final Map<String, Object> paramMap = new HashMap<>();
                paramMap.put("url", u);
                paramMap.put("matcher", m);
                final Object value =
                        ComponentUtil.getScriptEngineFactory().getScriptEngine(Constants.DEFAULT_SCRIPT).evaluate(template, paramMap);
                if (value == null) {
                    return u;
                }
                return value.toString();
            };
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

            if (StringUtil.isEmpty(template)) {
                return StringUtil.EMPTY;
            }
    
            return ComponentUtil.getScriptEngineFactory().getScriptEngine(scriptType).evaluate(template, paramMap);
        }
    
        default int getMaxSiteLength() {
            return getFessConfig().getCrawlerDocumentMaxSiteLengthAsInteger();
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

                return StringUtil.EMPTY;
            }
    
            if (paramMap.containsKey(template)) {
                return paramMap.get(template);
            }
    
            return ComponentUtil.getScriptEngineFactory().getScriptEngine(scriptType).evaluate(template, paramMap);
        }
    
        protected long getReadInterval(final DataStoreParams paramMap) {
            long readInterval = 0;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/util/ComponentUtil.java

            return getComponent(NOTIFICATION_HELPER);
        }
    
        public static IngestFactory getIngestFactory() {
            return getComponent(INGEST_FACTORY);
        }
    
        public static ScriptEngineFactory getScriptEngineFactory() {
            return getComponent(SCRIPT_ENGINE_FACTORY);
        }
    
        public static CrawlerStatsHelper getCrawlerStatsHelper() {
            return getComponent(CRAWLER_STATS_HELPER);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 13:35:51 UTC 2024
    - 20.2K bytes
    - Viewed (0)
Back to top