Package org.sf.bee.runtime.configuration

Examples of org.sf.bee.runtime.configuration.AbstractRuntimeConfiguration


                ? config.getSmtpReplyTo()
                : "";
    }

    public ConfigItemSMS getSMS() {
        final AbstractRuntimeConfiguration config = getRuntimeConfig();
        if (null != config) {
            final ConfigItemSMS result = config.getSMS();
            if (null != result) {
                final boolean valid = StringUtils.hasText(result.getMethod())
                        && StringUtils.hasText(result.getHost());
                return valid ? result : null;
            }
View Full Code Here


        }
        return null;
    }

    public List<ConfigItemLanguage> getLanguages() {
        final AbstractRuntimeConfiguration config = getRuntimeConfig();
        return null != config
                ? config.getLanguages()
                : new ArrayList<ConfigItemLanguage>();
    }
View Full Code Here

                ? config.getLanguages()
                : new ArrayList<ConfigItemLanguage>();
    }

    public List<ConfigItemClientApp> getClientApps() {
        final AbstractRuntimeConfiguration config = getRuntimeConfig();
        return null != config
                ? config.getClientApps()
                : new ArrayList<ConfigItemClientApp>();
    }
View Full Code Here

        }
        return result.toArray(new String[result.size()]);
    }

    public List<ConfigItemRpc> getRpcServices() {
        final AbstractRuntimeConfiguration config = getRuntimeConfig();
        return null != config
                ? config.getRpcServices()
                : new ArrayList<ConfigItemRpc>();
    }
View Full Code Here

                ? config.getRpcServices()
                : new ArrayList<ConfigItemRpc>();
    }

    public String[] getCssArray() {
        final AbstractRuntimeConfiguration config = getRuntimeConfig();
        return null != config
                ? config.getCssArray()
                : new String[0];
    }
View Full Code Here

                ? config.getCssArray()
                : new String[0];
    }

    public boolean getFlagDebugMode() {
        final AbstractRuntimeConfiguration config = getRuntimeConfig();
        return null != config
                ? config.getFlagDebugMode()
                : false;
    }
View Full Code Here

                ? config.getFlagDebugMode()
                : false;
    }

    public int getHttpRpcTimeout() {
        final AbstractRuntimeConfiguration config = getRuntimeConfig();
        final String value = null != config
                ? config.getHttpRpcTimeout()
                : "3000";
        return StringUtils.hasText(value)
                ? Integer.parseInt(value)
                : 3000;
    }
View Full Code Here

                ? Integer.parseInt(value)
                : 3000;
    }

    public boolean isHttpNonBlocking() {
        final AbstractRuntimeConfiguration config = getRuntimeConfig();
        return null != config
                ? config.isHttpNonBlocking()
                : true;
    }
View Full Code Here

    private Logger getLogger() {
        return LoggingUtils.getLogger(this);
    }

    private AbstractRuntimeConfiguration getRuntimeConfig() {
        final AbstractRuntimeConfiguration result = BeeRuntimeFactory.getRuntimeConfiguration();
        if (null == result) {
            _tryCount++;
            if (_tryCount < 2) {
                this.getLogger().log(Level.WARNING,
                        "Unable to retrieve a valid configuration object. "
View Full Code Here

        final BeeResource resConfig = this.getResource(beeingFileName);
        if (!resConfig.exists()) {
            return null;
        }
        final RuntimeConfigFile file = super.createConfigurationFile(resConfig.getUrl());
        final AbstractRuntimeConfiguration config = new BeeAppRuntimeConfigController(
                super.getApplication().getAppPath(), file);

        return config;
    }
View Full Code Here

TOP

Related Classes of org.sf.bee.runtime.configuration.AbstractRuntimeConfiguration

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.