no.sesat.search.query.token
Class JepEvaluatorFactory
java.lang.Object
no.sesat.search.query.token.AbstractEvaluatorFactory
no.sesat.search.query.token.JepEvaluatorFactory
public final class JepEvaluatorFactory
- extends AbstractEvaluatorFactory
Responsible for loading and serving the JEP Expression Token Evaluators.
Which TokenPredicates it is applicable to is defined in JEP_EVALUATOR_XMLFILE configuration file.
Immutable (although hidden lazy static-initialisation exists).
- Version:
- $Id: JepEvaluatorFactory.java 7225 2009-04-09 00:32:20Z ssmiweve $
|
Field Summary |
static String |
JEP_EVALUATOR_XMLFILE
The name of the file where regular expressions for each TokenPredicate will be configured. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JEP_EVALUATOR_XMLFILE
public static final String JEP_EVALUATOR_XMLFILE
- The name of the file where regular expressions for each TokenPredicate will be configured.
- See Also:
- Constant Field Values
JepEvaluatorFactory
public JepEvaluatorFactory(AbstractEvaluatorFactory.Context cxt)
throws SiteKeyedFactoryInstantiationException
- Throws:
SiteKeyedFactoryInstantiationException
getEvaluator
public TokenEvaluator getEvaluator(TokenPredicate token)
throws EvaluationException
- Description copied from class:
AbstractEvaluatorFactory
- If the evaluator is not found in this site it will fallback and look in the parent site.
- Specified by:
getEvaluator in class AbstractEvaluatorFactory
- Parameters:
token - the predicate the evaluator is to be used for
- Returns:
- the TokenEvaluator to use. Or TokenEvaluationEngineImpl.ALWAYS_FALSE_EVALUATOR if not found.
- Throws:
EvaluationException
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.