Package ch.grengine.engine

Examples of ch.grengine.engine.Engine


        if (config == null) {
            throw new IllegalArgumentException("Compiler configuration is null.");
        }
        CompilerFactory compilerFactory = new DefaultGroovyCompilerFactory(config);
        TopCodeCacheFactory topCodeCacheFactory = new DefaultTopCodeCacheFactory(compilerFactory);
        Engine engine = new LayeredEngine.Builder().setTopCodeCacheFactory(topCodeCacheFactory).build();
        return new Builder().setEngine(engine);
    }
View Full Code Here


        if (dirMode == null) {
            throw new IllegalArgumentException("Dir mode is null.");
        }
        CompilerFactory compilerFactory = new DefaultGroovyCompilerFactory(config);
        TopCodeCacheFactory topCodeCacheFactory = new DefaultTopCodeCacheFactory(compilerFactory);
        Engine engine = new LayeredEngine.Builder().setTopCodeCacheFactory(topCodeCacheFactory).build();
        Sources sources = new DirBasedSources.Builder(dir)
                .setCompilerFactory(compilerFactory)
                .setDirMode(dirMode)
                .build();
        return new Builder()
View Full Code Here

        if (urls == null) {
            throw new IllegalArgumentException("URL collection is null.");
        }
        CompilerFactory compilerFactory = new DefaultGroovyCompilerFactory(config);
        TopCodeCacheFactory topCodeCacheFactory = new DefaultTopCodeCacheFactory(compilerFactory);
        Engine engine = new LayeredEngine.Builder().setTopCodeCacheFactory(topCodeCacheFactory).build();
        SourceFactory sourceFactory = new DefaultSourceFactory.Builder().setTrackUrlContent(true).build();
        Set<Source> sourceSet = SourceUtil.urlsToSourceSet(sourceFactory, urls);
        Sources sources = new FixedSetSources.Builder(sourceSet)
                .setName("URL Sources")
                .setCompilerFactory(compilerFactory)
View Full Code Here

        if (config == null) {
            throw new IllegalArgumentException("Compiler configuration is null.");
        }
        CompilerFactory compilerFactory = new DefaultGroovyCompilerFactory(config);
        TopCodeCacheFactory topCodeCacheFactory = new DefaultTopCodeCacheFactory(compilerFactory);
        Engine engine = new LayeredEngine.Builder().setTopCodeCacheFactory(topCodeCacheFactory).build();
        return new Builder().setEngine(engine);
    }
View Full Code Here

        if (dirMode == null) {
            throw new IllegalArgumentException("Dir mode is null.");
        }
        CompilerFactory compilerFactory = new DefaultGroovyCompilerFactory(config);
        TopCodeCacheFactory topCodeCacheFactory = new DefaultTopCodeCacheFactory(compilerFactory);
        Engine engine = new LayeredEngine.Builder().setTopCodeCacheFactory(topCodeCacheFactory).build();
        Sources sources = new DirBasedSources.Builder(dir)
                .setCompilerFactory(compilerFactory)
                .setDirMode(dirMode)
                .build();
        return new Builder()
View Full Code Here

        if (urls == null) {
            throw new IllegalArgumentException("URL collection is null.");
        }
        CompilerFactory compilerFactory = new DefaultGroovyCompilerFactory(config);
        TopCodeCacheFactory topCodeCacheFactory = new DefaultTopCodeCacheFactory(compilerFactory);
        Engine engine = new LayeredEngine.Builder().setTopCodeCacheFactory(topCodeCacheFactory).build();
        SourceFactory sourceFactory = new DefaultSourceFactory.Builder().setTrackUrlContent(true).build();
        Set<Source> sourceSet = SourceUtil.urlsToSourceSet(sourceFactory, urls);
        Sources sources = new FixedSetSources.Builder(sourceSet)
                .setName("URL Sources")
                .setCompilerFactory(compilerFactory)
View Full Code Here

TOP

Related Classes of ch.grengine.engine.Engine

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.