Package com.astamuse.asta4d.web

Examples of com.astamuse.asta4d.web.WebApplicationConfiguration


        WebApplicationContext context = new WebApplicationContext();
        return context;
    }

    protected WebApplicationConfiguration createConfiguration() {
        return new WebApplicationConfiguration();
    }
View Full Code Here


    private final static DeclareInstanceResolver defaultResolver = new DefaultDeclareInstanceResolver();

    @SuppressWarnings("unchecked")
    public final static <T> T createInstance(Object declaration) {
        WebApplicationConfiguration conf = (WebApplicationConfiguration) Context.getCurrentThreadContext().getConfiguration();
        List<DeclareInstanceResolver> resolverList = conf.getInstanceResolverList();
        Object handler = null;
        for (DeclareInstanceResolver resolver : resolverList) {
            handler = resolver.resolve(declaration);
            if (handler != null) {
                break;
View Full Code Here

        this.servletConfig = servletConfig;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        WebApplicationConfiguration asta4dConf = beanContext.getBean(WebApplicationConfiguration.class);
        WebApplicatoinConfigurationInitializer.initConfigurationFromFile(servletConfig, asta4dConf);
        WebApplicationConfiguration.setConfiguration(asta4dConf);
    }
View Full Code Here

TOP

Related Classes of com.astamuse.asta4d.web.WebApplicationConfiguration

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.