Package com.mysema.codegen

Examples of com.mysema.codegen.ECJEvaluatorFactory


    @Test
    public void Evaluator_Factory() {
        DefaultEvaluatorFactory evaluatorFactory = new DefaultEvaluatorFactory(
                CollQueryTemplates.DEFAULT,
                new ECJEvaluatorFactory(getClass().getClassLoader()));
        QueryEngine queryEngine = new DefaultQueryEngine(evaluatorFactory);
        CollQuery query = new CollQuery(queryEngine);
        query.from(cat, cats).list(cat.name);
    }
View Full Code Here


        this.templates = templates;
        if (classLoader instanceof URLClassLoader) {
            this.factory = new JDKEvaluatorFactory((URLClassLoader) classLoader);
        } else {
            // for OSGi compatibility
            this.factory = new ECJEvaluatorFactory(classLoader);
        }
    }
View Full Code Here

TOP

Related Classes of com.mysema.codegen.ECJEvaluatorFactory

Copyright © 2018 www.massapicom. 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.