Examples of readOptionValueOrDefault()


Examples of de.innovationgate.wga.modules.options.OptionReader.readOptionValueOrDefault()

    public WGDatabase openDatabase(Class<? extends WGDatabaseCore> implClass, WGDatabaseServer dbServer, Map<String, String> options, boolean prepareOnly) throws WGAPIException {
        try {
            ModuleDefinition serverDef = WGFactory.getModuleRegistry().getModuleDefinition(DatabaseServerModuleType.class, getDatabaseServerType());
            OptionReader serverOptionReader = OptionReader.create(dbServer.getOptions(), serverDef);
           
            String masterUser = (String) serverOptionReader.readOptionValueOrDefault(DatabaseServer.OPTION_MASTERLOGIN_USER);
            String masterPassword = (String) serverOptionReader.readOptionValueOrDefault(DatabaseServer.OPTION_MASTERLOGIN_PASSWORD);
           
            String basePath = dbServer.getOptions().get(Database.OPTION_PATH);
            String pathExtension = options.get(Database.OPTION_PATH);
            String jdbcPath = (basePath != null ? basePath : "") + pathExtension;
View Full Code Here

Examples of de.innovationgate.wga.modules.options.OptionReader.readOptionValueOrDefault()

        try {
            ModuleDefinition serverDef = WGFactory.getModuleRegistry().getModuleDefinition(DatabaseServerModuleType.class, getDatabaseServerType());
            OptionReader serverOptionReader = OptionReader.create(dbServer.getOptions(), serverDef);
           
            String masterUser = (String) serverOptionReader.readOptionValueOrDefault(DatabaseServer.OPTION_MASTERLOGIN_USER);
            String masterPassword = (String) serverOptionReader.readOptionValueOrDefault(DatabaseServer.OPTION_MASTERLOGIN_PASSWORD);
           
            String basePath = dbServer.getOptions().get(Database.OPTION_PATH);
            String pathExtension = options.get(Database.OPTION_PATH);
            String jdbcPath = (basePath != null ? basePath : "") + pathExtension;
           
View Full Code Here

Examples of de.innovationgate.wga.modules.options.OptionReader.readOptionValueOrDefault()

            if (cachedValue != null) {
                return cachedValue;
            }
           
            OptionReader reader = OptionReader.create(options, modDef);
            Object value = reader.readOptionValueOrDefault(optionName);
            if (value != null) {
                _cache.put(cacheKey, value);
            }
            return value;
        }
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.