Package org.fluxtream.core.connectors.updaters

Examples of org.fluxtream.core.connectors.updaters.AbstractUpdater


            return;
        }
        try {
            final Object settings = gson.fromJson(json, updaterAnnotation.settings());
            guestService.setApiKeySettings(apiKeyId, settings);
            final AbstractUpdater updater = beanFactory.getBean(apiKey.getConnector().getUpdaterClass());
            ((SettingsAwareUpdater)updater).connectorSettingsChanged(apiKeyId, settings);
        }
        catch (Exception e) {
            logger.warn(sb.append(" message=\"unexpected exception when saving connector settings for connector \"" + apiKey.getConnector().getName()));
            return;
View Full Code Here


                    throw new RuntimeException("Could not instantiate default settings for connector " + apiKey.getConnector().getName());
                }
            }
        }
        if (SettingsAwareUpdater.class.isAssignableFrom(updaterClass)) {
            final AbstractUpdater updater = beanFactory.getBean(apiKey.getConnector().getUpdaterClass());
            ((SettingsAwareUpdater)updater).connectorSettingsChanged(apiKeyId, defaultSettings);
        }
        em.persist(apiKey);
    }
View Full Code Here

        final Connector connector = apiKey.getConnector();
        executor.execute( new Runnable() {

            @Override
            public void run() {
                final AbstractUpdater bean = beanFactory.getBean(connector.getUpdaterClass());
                FileUploadSupport handler = (FileUploadSupport) bean;
                try {
                    handler.importFile(apiKey, f);
                }
                catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.fluxtream.core.connectors.updaters.AbstractUpdater

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.