Examples of SettingsImpl


Examples of com.eviware.soapui.impl.settings.SettingsImpl

        assertGlobalProxyHost("environmentshost.com");
        assertHttpClientProxyHost("environmentshost.com");
    }

    private Settings emptySettings() {
        return new SettingsImpl();
    }
View Full Code Here

Examples of com.zerodes.exchangesync.settings.SettingsImpl

public class App {
  private static final Logger LOG = LoggerFactory.getLogger(App.class);
 
  public static void main(final String[] args) {
    final SettingsImpl settings = new SettingsImpl();
    if (settings.getUserSettings().needInternetProxy()) {
      System.setProperty("http.proxyHost", settings.getUserSettings().internetProxyHost());
      System.setProperty("http.proxyPort", String.valueOf(settings.getUserSettings().internetProxyPort()));
    }
   
    try {
      // Initialize exchange source
      final ExchangeSourceImpl exchangeSource = new ExchangeSourceImpl(settings.getExchangeSettings());
     
      // Initialize statistics collector
      final StatisticsCollector stats = new StatisticsCollector();
     
      if (settings.getUserSettings().syncAppointments()) {
        // Initialize Google source
        final CalendarSource googleSource = new GoogleCalendarSourceImpl(settings);
       
        // Synchronize appointments
        final SyncCalendarsImpl syncCalendars = new SyncCalendarsImpl(exchangeSource, googleSource);
        syncCalendars.syncAll(stats);
      }
     
      if (settings.getUserSettings().syncTasks()) {
        // Initialize RTM source
        final TaskSource rtmSource = new RtmTaskSourceImpl(settings);
       
        // Synchronize tasks
        final SyncTasksImpl syncTasks = new SyncTasksImpl(exchangeSource, rtmSource);
        syncTasks.syncAll(stats);
      }
     
      // Show stats
      stats.display();
    } catch (final Exception e) {
      LOG.error("An unexpected exception occurred", e);
    } finally {
      settings.save();
    }
  }
View Full Code Here

Examples of org.hibernate.jpa.boot.internal.SettingsImpl

      ServiceRegistry serviceRegistry,
      String persistenceUnitName) {
    this(
        persistenceUnitName,
        (SessionFactoryImplementor) cfg.buildSessionFactory( serviceRegistry ),
        new SettingsImpl().setReleaseResourcesOnCloseEnabled( discardOnClose ).setSessionInterceptorClass( sessionInterceptorClass ).setTransactionType( transactionType ),
        cfg.getProperties(),
        cfg
    );
  }
View Full Code Here

Examples of org.hibernate.jpa.boot.internal.SettingsImpl

      ServiceRegistry serviceRegistry,
      String persistenceUnitName) {
    this(
        persistenceUnitName,
        (SessionFactoryImplementor) cfg.buildSessionFactory( serviceRegistry ),
        new SettingsImpl().setReleaseResourcesOnCloseEnabled( discardOnClose ).setSessionInterceptorClass( sessionInterceptorClass ).setTransactionType( transactionType ),
        cfg.getProperties(),
        cfg
    );
  }
View Full Code Here

Examples of org.hibernate.jpa.boot.internal.SettingsImpl

      ServiceRegistry serviceRegistry,
      String persistenceUnitName) {
    this(
        persistenceUnitName,
        (SessionFactoryImplementor) cfg.buildSessionFactory( serviceRegistry ),
        new SettingsImpl().setReleaseResourcesOnCloseEnabled( discardOnClose ).setSessionInterceptorClass( sessionInterceptorClass ).setTransactionType( transactionType ),
        cfg.getProperties(),
        cfg
    );
  }
View Full Code Here

Examples of org.hibernate.jpa.boot.internal.SettingsImpl

      ServiceRegistry serviceRegistry,
      String persistenceUnitName) {
    this(
        persistenceUnitName,
        (SessionFactoryImplementor) cfg.buildSessionFactory( serviceRegistry ),
        new SettingsImpl().setReleaseResourcesOnCloseEnabled( discardOnClose ).setSessionInterceptorClass( sessionInterceptorClass ).setTransactionType( transactionType ),
        cfg.getProperties(),
        cfg
    );
  }
View Full Code Here

Examples of org.hibernate.jpa.boot.internal.SettingsImpl

      ServiceRegistry serviceRegistry,
      String persistenceUnitName) {
    this(
        persistenceUnitName,
        (SessionFactoryImplementor) cfg.buildSessionFactory( serviceRegistry ),
        new SettingsImpl().setReleaseResourcesOnCloseEnabled( discardOnClose ).setSessionInterceptorClass( sessionInterceptorClass ).setTransactionType( transactionType ),
        cfg.getProperties(),
        cfg
    );
  }
View Full Code Here

Examples of org.hibernate.jpa.boot.internal.SettingsImpl

      ServiceRegistry serviceRegistry,
      String persistenceUnitName) {
    this(
        persistenceUnitName,
        (SessionFactoryImplementor) cfg.buildSessionFactory( serviceRegistry ),
        new SettingsImpl().setReleaseResourcesOnCloseEnabled( discardOnClose ).setSessionInterceptorClass( sessionInterceptorClass ).setTransactionType( transactionType ),
        cfg.getProperties(),
        cfg
    );
  }
View Full Code Here

Examples of org.hibernate.jpa.boot.internal.SettingsImpl

      ServiceRegistry serviceRegistry,
      String persistenceUnitName) {
    this(
        persistenceUnitName,
        (SessionFactoryImplementor) cfg.buildSessionFactory( serviceRegistry ),
        new SettingsImpl().setReleaseResourcesOnCloseEnabled( discardOnClose ).setSessionInterceptorClass( sessionInterceptorClass ).setTransactionType( transactionType ),
        cfg.getProperties(),
        cfg
    );
  }
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.