Class EvaluatorFactoryFinder
java.lang.Object
org.apache.synapse.commons.evaluators.config.EvaluatorFactoryFinder
Factories for creating Evaluators are found using the evaluator name. This class stores
information about Evaluator Factories and their corresponding names. This is a Singleton class.
-
Method Summary
Modifier and TypeMethodDescriptionfindEvaluatorFactory(String name) Retun anEvaluatorFactoryfor a given Evaluator name.getEvaluator(org.apache.axiom.om.OMElement elem) Retun anEvaluatorFactoryfor a given Evaluator name.static EvaluatorFactoryFinderReturn and instance of theEvaluatorFactoryFinder.
-
Method Details
-
getInstance
Return and instance of theEvaluatorFactoryFinder.- Returns:
- the EvaluatorFactoryFinder singleton
-
findEvaluatorFactory
Retun anEvaluatorFactoryfor a given Evaluator name.- Parameters:
name- name of the Evaluator- Returns:
- an EvaluatorFactory
-
getEvaluator
Retun anEvaluatorFactoryfor a given Evaluator name.- Parameters:
elem- A XML element containing the evaluator configuration- Returns:
- an Evaluator
- Throws:
EvaluatorException- if it cannot find a corresponding factory for creating an evaluator
-