Examples of ConnectionFactoryRegistry


Examples of org.datanucleus.ConnectionFactoryRegistry

  /**
   * Helper method to determine if the connection factory associated with this
   * manager is transactional.
   */
  public boolean connectionFactoryIsTransactional() {
    ConnectionFactoryRegistry registry = getOMFContext().getConnectionFactoryRegistry();
    DatastoreConnectionFactoryImpl connFactory =
        (DatastoreConnectionFactoryImpl) registry.lookupConnectionFactory(txConnectionFactoryName);
    return connFactory.isTransactional();
  }
View Full Code Here

Examples of org.datanucleus.ConnectionFactoryRegistry

  /**
   * Helper method to determine if the connection factory associated with this
   * manager is transactional.
   */
  public boolean connectionFactoryIsTransactional() {
    ConnectionFactoryRegistry registry = getOMFContext().getConnectionFactoryRegistry();
    DatastoreConnectionFactoryImpl connFactory =
        (DatastoreConnectionFactoryImpl) registry.lookupConnectionFactory(txConnectionFactoryName);
    return connFactory.isTransactional();
  }
View Full Code Here

Examples of org.datanucleus.ConnectionFactoryRegistry

  /**
   * Helper method to determine if the connection factory associated with this
   * manager is transactional.
   */
  public boolean connectionFactoryIsTransactional() {
    ConnectionFactoryRegistry registry = getOMFContext().getConnectionFactoryRegistry();
    DatastoreConnectionFactoryImpl connFactory =
        (DatastoreConnectionFactoryImpl) registry.lookupConnectionFactory(txConnectionFactoryName);
    return connFactory.isTransactional();
  }
View Full Code Here

Examples of org.jpox.ConnectionFactoryRegistry

     * @return The Connection
     * @throws JPOXException Thrown if an error occurs getting the connection
     */
    public ManagedConnection getConnection(ObjectManager om)
    {
        ConnectionFactoryRegistry registry = om.getOMFContext().getConnectionFactoryRegistry();
        ConnectionFactory connFactory = registry.lookupConnectionFactory(txConnectionFactoryName);
        return connFactory.getConnection(om, null);
    }
View Full Code Here

Examples of org.jpox.ConnectionFactoryRegistry

     * @throws SQLException Thrown if an error occurs getting the connection
     */
    public ManagedConnection getConnection()
    throws SQLException
    {
        ConnectionFactoryRegistry registry = getOMFContext().getConnectionFactoryRegistry();
        ConnectionFactory connFactory = registry.lookupConnectionFactory(nontxConnectionFactoryName);
        return connFactory.getConnection(null, null);
    }
View Full Code Here

Examples of org.jpox.ConnectionFactoryRegistry

     * @throws SQLException
     */
    public ManagedConnection getConnection(int isolation_level)
    throws SQLException
    {
        ConnectionFactoryRegistry registry = omfContext.getConnectionFactoryRegistry();
        ConnectionFactory connFactory = registry.lookupConnectionFactory(nontxConnectionFactoryName);
        Map options = new HashMap();
        options.put("transaction.isolation", new Integer(isolation_level));
        return connFactory.getConnection(null, options);
      
    }
View Full Code Here

Examples of org.springframework.social.connect.support.ConnectionFactoryRegistry

    @Autowired
    TextEncryptor textEncryptor;

    @Bean
    public ConnectionFactoryLocator connectionFactoryLocator() {
        ConnectionFactoryRegistry registry = new ConnectionFactoryRegistry();
        registry.addConnectionFactory(new FacebookConnectionFactory(
            config.getFacebookClientId(),
            config.getFacebookClientSecret()));
        return registry;
    }
View Full Code Here

Examples of org.springframework.social.connect.support.ConnectionFactoryRegistry

  private String facebookClientId = "209321265842875";
  private String facebookClientSecret = "e14d105e82eb8e8bf1fc9f4918ddb15a";

  @Bean
  public ConnectionFactoryLocator connectionFactoryLocator() {
      ConnectionFactoryRegistry registry = new ConnectionFactoryRegistry();
      registry.addConnectionFactory(new FacebookConnectionFactory(facebookClientId, facebookClientSecret));
      return registry;
  }
View Full Code Here

Examples of org.springframework.social.connect.support.ConnectionFactoryRegistry

   * This bean is defined as a scoped-proxy so it can be serialized in support of {@link ProviderSignInAttempt provier sign-in attempts}.
   */
  @Bean
  @Scope(value="singleton", proxyMode=ScopedProxyMode.INTERFACES
  public ConnectionFactoryLocator connectionFactoryLocator() {
    ConnectionFactoryRegistry registry = new ConnectionFactoryRegistry();
    registry.addConnectionFactory(new TwitterConnectionFactory(environment.getProperty("twitter.consumerKey"), environment.getProperty("twitter.consumerSecret")));
    registry.addConnectionFactory(new FacebookConnectionFactory(environment.getProperty("facebook.appId"), environment.getProperty("facebook.appSecret")));
    registry.addConnectionFactory(new LinkedInConnectionFactory(environment.getProperty("linkedin.consumerKey"), environment.getProperty("linkedin.consumerSecret")));   
    registry.addConnectionFactory(new TripItConnectionFactory(environment.getProperty("tripit.consumerKey"), environment.getProperty("tripit.consumerSecret")));
    return registry;
  }
View Full Code Here

Examples of org.springframework.social.connect.support.ConnectionFactoryRegistry

            return controller;
        }

        @Bean
        public ConnectionFactoryRegistry connectionFactoryRegistry() {
            return new ConnectionFactoryRegistry();
        }
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.