Package net.hasor.core.context

Examples of net.hasor.core.context.StandardAppContext


        return Hasor.createAppContext(config, new Module[0]);
    }
    /**用简易的方式创建{@link AppContext}容器。*/
    public static AppContext createAppContext(final String config, final Module... modules) {
        try {
            StandardAppContext app = new StandardAppContext(config);
            app.start(modules);
            return app;
        } catch (Throwable e) {
            if (e instanceof RuntimeException) {
                throw (RuntimeException) e;
            } else {
View Full Code Here

TOP

Related Classes of net.hasor.core.context.StandardAppContext

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.