no.sesat.search.query.token
Class JepEvaluatorFactory

java.lang.Object
  extended by no.sesat.search.query.token.AbstractEvaluatorFactory
      extended by 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 $

Nested Class Summary
 
Nested classes/interfaces inherited from class no.sesat.search.query.token.AbstractEvaluatorFactory
AbstractEvaluatorFactory.Context
 
Field Summary
static String JEP_EVALUATOR_XMLFILE
          The name of the file where regular expressions for each TokenPredicate will be configured.
 
Constructor Summary
JepEvaluatorFactory(AbstractEvaluatorFactory.Context cxt)
           
 
Method Summary
 TokenEvaluator getEvaluator(TokenPredicate token)
          If the evaluator is not found in this site it will fallback and look in the parent site.
 
Methods inherited from class no.sesat.search.query.token.AbstractEvaluatorFactory
getContext, instanceOf, isResponsibleFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JepEvaluatorFactory

public JepEvaluatorFactory(AbstractEvaluatorFactory.Context cxt)
                    throws SiteKeyedFactoryInstantiationException
Throws:
SiteKeyedFactoryInstantiationException
Method Detail

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.