@@ -0,0 +1,1141 @@
+package cn.cerc.mis.core;%0A%0Aimport cn.cerc.db.core.IHandle;%0Aimport cn.cerc.db.core.IOption;%0Aimport cn.cerc.db.core.KeyValue;%0A%0Apublic class Options %7B%0A%0A    public static final String ON = %22on%22;%0A    public static final String OFF = %22off%22;%0A%0A    public static KeyValue get(IHandle handle, Class%3C? extends IOption%3E clazz) %7B%0A        IOption option = Application.getContext().getBean(clazz);%0A        return new KeyValue(option.getValue(handle));%0A    %7D%0A%0A    public static KeyValue get(IHandle handle, Class%3C? extends IOption%3E clazz, String def) %7B%0A        IOption option = Application.getContext().getBean(clazz);%0A        return new KeyValue(option.getValue(handle, def));%0A    %7D%0A%0A    public static boolean isOn(IHandle handle, Class%3C? extends IOption%3E clazz) %7B%0A        IOption option = Application.getContext().getBean(clazz);%0A        return cn.cerc.mis.core.Options.ON.equals(option.getValue(handle, %22%22));%0A    %7D%0A%0A    public static boolean isOff(IHandle handle, Class%3C? extends IOption%3E clazz) %7B%0A        IOption option = Application.getContext().getBean(clazz);%0A        return cn.cerc.mis.core.Options.OFF.equals(option.getValue(handle, %22%22));%0A    %7D%0A%0A%7D%0A

Create Options.java