Examples of refreshVariables()


Examples of net.hasor.core.Environment.refreshVariables()

        AppContext appContext = Hasor.createAppContext();
        Environment env = appContext.getEnvironment();
        //
        //设置属性
        System.setProperty("MyVar", "hello");
        env.refreshVariables();/*刷新变量列表*/
        System.out.println(env.getEnvVar("MyVar"));
        System.out.println(env.evalString("i say %MyVar%."));
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.