All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.noear.solon.serialization.hessian.XPluginImp Maven / Gradle / Ivy

There is a newer version: 3.0.6
Show newest version
package org.noear.solon.serialization.hessian;

import org.noear.solon.Solon;
import org.noear.solon.SolonApp;
import org.noear.solon.core.AopContext;
import org.noear.solon.core.Bridge;
import org.noear.solon.core.Plugin;
import org.noear.solon.core.handle.RenderManager;

public class XPluginImp implements Plugin {
    public static boolean output_meta = false;

    @Override
    public void start(AopContext context) {
        output_meta = Solon.cfg().getInt("solon.output.meta", 0) > 0;

        HessianRender render = new HessianRender();

        //XRenderManager.register(render);
        RenderManager.mapping("@hessian",render);
        Bridge.actionExecutorAdd(new HessianActionExecutor());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy