Package org.pirkaengine.core

Examples of org.pirkaengine.core.PirkaContext


       
    }
   
    @Override
    public String call() throws Exception {
        PirkaContext context = new PirkaContext();
        context.setCachePath("tmp/cache");
        context.setEnableCache(true);
        context.setTemplatePath("testdata");
        PirkaLoader loader = new PirkaLoader(context);
       
        String templateName = "Repeat";
        Template tmpl = loader.load(getTemplateFileName(templateName));
        HashMap<String, Object> viewModel = new HashMap<String, Object>();
View Full Code Here


    /**
     * PirkaContextの初期設定と、loaderとviewModelの初期化を行う
     */
    @Before
    public void setup() {
        PirkaContext ctx = PirkaContext.getInstance();
        ctx.setAppRoot("app_root");
        ctx.setTemplatePath("testdata");
        ctx.setCachePath("tmp/cache");
        ctx.setEnableCache(false);
        ctx.setEnableDebug(true);
        ctx.addScriptSupport("groovy", "scripts/groovy/");
        ctx.addScriptSupport("jruby", "scripts/jruby/");
        ctx.addScriptSupport("ruby", "scripts/jruby/");
        loader = PirkaLoader.newInstance();
        viewModel = new HashMap<String, Object>();
    }
View Full Code Here

    private PirkaContext context;

    @Before
    public void setup() {
        context = new PirkaContext();
    }
View Full Code Here

    private CacheSerializerImpl target;

    @Before
    public void setup() {
        target = new CacheSerializerImpl();
        PirkaContext ctx = new PirkaContext();
        ctx.setTemplatePath("tmp/test");
        target.setContext(ctx);
    }
View Full Code Here

    private CacheDeserializerImpl target;

    @Before
    public void setup() {
        target = new CacheDeserializerImpl();
        PirkaContext ctx = new PirkaContext();
        ctx.setTemplatePath("tmp/test");
        target.setContext(ctx);
    }
View Full Code Here

    private CacheManager target;

    @Before
    public void setup() {
        PirkaContext context = new PirkaContext();
        context.setEnableCache(true);
        context.setCachePath("tmp/cache");
        CacheSerializerImpl serializer = new CacheSerializerImpl();
        serializer.setContext(context);
        CacheDeserializerImpl deserializer = new CacheDeserializerImpl();
        deserializer.setContext(context);
        target = new CacheManager(serializer, deserializer);
View Full Code Here

TOP

Related Classes of org.pirkaengine.core.PirkaContext

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.