// Path: src/main/java/cn/shiroblue/modules/DefaultRender.java
// public class DefaultRender implements Render {
//     @Override
//     public String rend(Object model) throws Exception {
//         return model.toString();
//     }
// }
// 
// Path: src/main/java/cn/shiroblue/modules/Render.java
// public interface Render {
// 
// 
//     String rend(Object model) throws Exception;
// 
// }


import cn.shiroblue.modules.DefaultRender;
import cn.shiroblue.modules.Render;
package cn.shiroblue.core;


/**
 * Description:
 * <p>
 * ======================
 * by WhiteBlue
 * on 15/11/8
 */
public class RenderFactory {
    private static Render render = null;

    private RenderFactory() {
    }

    public static Render get() {
        if (render == null) {
            render = new DefaultRender();
        }
        return render;
    }

    public static void setDefaultRender(Render newRender) {
// Path: src/main/java/cn/shiroblue/modules/DefaultRender.java
// public class DefaultRender implements Render {
//     @Override
//     public String rend(Object model) throws Exception {
//         return model.toString();
//     }
// }
// 
// Path: src/main/java/cn/shiroblue/modules/Render.java
// public interface Render {
// 
// 
//     String rend(Object model) throws Exception;
// 
// }


// Path: src/main/java/cn/shiroblue/core/RenderFactory.java
import cn.shiroblue.modules.DefaultRender;
import cn.shiroblue.modules.Render;

package cn.shiroblue.core;


/**
 * Description:
 * <p>
 * ======================
 * by WhiteBlue
 * on 15/11/8
 */
public class RenderFactory {
    private static Render render = null;

    private RenderFactory() {
    }

    public static Render get() {
        if (render == null) {
            render = new DefaultRender();
        }
        return render;
    }

    public static void setDefaultRender(Render newRender) {
        render = newRender;