Package de.innovationgate.wga.config

Examples of de.innovationgate.wga.config.DatabaseServer


    public List<String> getProvidedValues() {
        List<String> serverUIDs = new ArrayList<String>();
        Iterator<DatabaseServer> servers = _config.getDatabaseServers().iterator();
        while (servers.hasNext()) {
            DatabaseServer server = (DatabaseServer) servers.next();
            if (server.isEnabled() && (_type == null || _type.equals(server.getImplClassName()))) {
                serverUIDs.add(server.getUid());
            }
        }
        return serverUIDs;
    }
View Full Code Here


        }
        return serverUIDs;
    }

    public String getValueTitle(String value, Locale locale) {
        DatabaseServer server = _config.getDatabaseServer(value);
        return server.getTitle();
    }
View Full Code Here

            // ignore disabled dbs
            if (!databaseConfig.isEnabled()) {
                continue;
            }
            DatabaseServer serverConfig = (DatabaseServer) _wgaConfiguration.getByUid(databaseConfig.getDbServer());
            if (serverConfig != null && !serverConfig.isEnabled()) {
                continue;
            }

            // Get or create database object
            boolean isNewDB = false;
View Full Code Here

                continue;
            }
            if (!persDBConfig.isEnabled()) {
                continue;
            }
            DatabaseServer serverConfig = (DatabaseServer) _wgaConfiguration.getByUid(persDBConfig.getDbServer());
            if (serverConfig != null && !serverConfig.isEnabled()) {
                continue;
            }

            // Get or retrieve db
          WGDatabase db = null;
View Full Code Here

        }
       
        // Add servers from configuration
        Iterator<DatabaseServer> servers = getWgaConfiguration().getDatabaseServers().iterator();
        while (servers.hasNext()) {
            DatabaseServer databaseServer = servers.next();
            if (databaseServer.isEnabled()) {
                try {
                    Class serverClass = getLibraryLoader().loadClass(databaseServer.getImplClassName());
                    WGDatabaseServer server = (WGDatabaseServer) getModuleRegistry().instantiate(serverClass);
                    server.init(databaseServer.getUid(), databaseServer.getTitle(), databaseServer.getOptions());
                    newServers.put(server.getUid(), server);
                    getLog().info("Registering database server '" + server.getTitle(Locale.getDefault()) + "'");
                }
                catch (Exception e) {
                    getLog().error("Exception instantiating database server", e);
View Full Code Here

TOP

Related Classes of de.innovationgate.wga.config.DatabaseServer

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.