Package grails.config

Examples of grails.config.Config


    private GrailsApplication grailsApplication;

    public GrailsPlaceholderConfigurer(GrailsApplication grailsApplication) {
        this.grailsApplication = grailsApplication;
        Config config = grailsApplication.getConfig();
        setPlaceholderPrefix(config.getProperty(Settings.SPRING_PLACEHOLDER_PREFIX, "${"));
        setIgnoreUnresolvablePlaceholders(true);
    }
View Full Code Here


        setIgnoreUnresolvablePlaceholders(true);
    }

    @Override
    protected void loadProperties(Properties props) throws IOException {
        Config config = grailsApplication.getConfig();
        if (config != null) {
            props.putAll(config.toProperties());
        }
    }
View Full Code Here

TOP

Related Classes of grails.config.Config

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.