Examples of Evaluator


Examples of org.apache.synapse.commons.evaluators.Evaluator

        if (ef == null) {
            handleException("Invalid configuration element: " + ce.getLocalName());
            return null;
        }

        Evaluator evaluator = ef.create(ce);

        r.setEvaluator(evaluator);
        return r;
    }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.Evaluator

                handleException("Invalid configuration element: " +
                        evaluatorElement.getLocalName());
                return null;
            }

            Evaluator evaluator = ef.create(evaluatorElement);
            evaluators.add(evaluator);
        }

        if (evaluators.size() > 1) {
            o.setEvaluators(evaluators.toArray(new Evaluator[evaluators.size()]));
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.Evaluator

                handleException("Invalid configuration element: " +
                        evaluatorElement.getLocalName());
                return null;
            }

            Evaluator evaluator = ef.create(evaluatorElement);
            evaluators.add(evaluator);
        }

        if (evaluators.size() > 1) {          
            o.setEvaluators(evaluators.toArray(new Evaluator[evaluators.size()]));
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.Evaluator

        if (ef == null) {
            handleException("Invalid configuration element: " + ce.getLocalName());
            return null;
        }

        Evaluator evaluator = ef.create(ce);

        not.setEvaluator(evaluator);

        return not;
    }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.Evaluator

        return rewrite;
    }

    private OMElement serializeRule(RewriteRule r) throws EvaluatorException {
        OMElement rule = fac.createOMElement("rule", synNS);
        Evaluator condition = r.getCondition();
        if (condition != null) {
            OMElement conditionElt = fac.createOMElement("condition", synNS);
            EvaluatorSerializer serializer = EvaluatorSerializerFinder.getInstance().
                    getSerializer(condition.getName());
            serializer.serialize(conditionElt, condition);
            rule.addChild(conditionElt);
        }

        List<RewriteAction> actions = r.getActions();
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.Evaluator

                handleException("Couldn't find the condition of the conditional router");
                return null;
            }

            try {
                Evaluator evaluator = EvaluatorFactoryFinder.getInstance().getEvaluator(
                        conditionElem.getFirstElement());
                route.setEvaluator(evaluator);
            } catch (EvaluatorException ee) {
                handleException("Couldn't build the condition of the conditional router", ee);
            }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.Evaluator

        OMElement condition = ruleElement.getFirstChildWithName(CONDITION_Q);
        if (condition != null) {
            OMElement child = condition.getFirstElement();
            if (child != null) {
                try {
                    Evaluator eval = EvaluatorFactoryFinder.getInstance().getEvaluator(child);
                    rule.setCondition(eval);
                } catch (EvaluatorException e) {
                    handleException("Error while parsing the rule condition", e);
                }
            }
View Full Code Here

Examples of org.apache.taglibs.standard.lang.jstl.Evaluator

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        context = createTestContext();
        e = new Evaluator();
    }
View Full Code Here

Examples of org.drools.core.spi.Evaluator

            Target right = rightDecl != null && rightDecl.isPatternDeclaration() ? Target.HANDLE : Target.FACT;

            op.setLeftIsHandle( left == Target.HANDLE );
            op.setRightIsHandle( right == Target.HANDLE );

            Evaluator evaluator = getConstraintBuilder( context ).getEvaluator(
                    context,
                    predicateDescr,
                    ValueType.OBJECT_TYPE,
                    op.getOperator(),
                    false, // the rewrite takes care of negation
View Full Code Here

Examples of org.drools.core.spi.Evaluator

            Target right = rightDecl != null && rightDecl.isPatternDeclaration() ? Target.HANDLE : Target.FACT;

            op.setLeftIsHandle( left == Target.HANDLE );
            op.setRightIsHandle( right == Target.HANDLE );

            Evaluator evaluator = getConstraintBuilder( context ).getEvaluator(
                    context,
                    predicateDescr,
                    ValueType.OBJECT_TYPE,
                    op.getOperator(),
                    false, // the rewrite takes care of negation
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.