org.springframework.social.connect.support.ConnectionFactoryRegistry Java Examples
The following examples show how to use
org.springframework.social.connect.support.ConnectionFactoryRegistry.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfigAwareConnectionFactoryLocatorTest.java From engine with GNU General Public License v3.0 | 6 votes |
@Override @Before public void setUp() throws Exception { super.setUp(); CacheTemplateMockUtils.setUpWithNoCaching(cacheTemplate); ConfigurationParser<?> configParserStub = new FacebookConnectionFactoryConfigParser() { @Override protected ConnectionFactory<Facebook> createFacebookConnectionFactory(String appId, String appSecret) { return new FacebookConnectionFactoryStub(appId, appSecret); } }; locator = new ConfigAwareConnectionFactoryLocator(); locator.setCacheTemplate(cacheTemplate); locator.setDefaultLocator(new ConnectionFactoryRegistry()); locator.setConfigParsers(Arrays.<ConfigurationParser<?>>asList(configParserStub)); }
Example #2
Source File: _CustomSocialUsersConnectionRepositoryIntTest.java From jhipster-ribbon-hystrix with GNU General Public License v3.0 | 5 votes |
@Before public void setUp() { socialUserConnectionRepository.deleteAll(); connectionFactoryRegistry = new ConnectionFactoryRegistry(); connectionFactory = new TestFacebookConnectionFactory(); connectionFactoryRegistry.addConnectionFactory(connectionFactory); usersConnectionRepository = new CustomSocialUsersConnectionRepository(socialUserConnectionRepository, connectionFactoryRegistry); connectionRepository = usersConnectionRepository.createConnectionRepository("1"); }
Example #3
Source File: SecurityConfig.java From tutorials with MIT License | 4 votes |
private ConnectionFactoryLocator connectionFactoryLocator() { ConnectionFactoryRegistry registry = new ConnectionFactoryRegistry(); registry.addConnectionFactory(new FacebookConnectionFactory(appId, appSecret)); return registry; }
Example #4
Source File: UtilConnectionRegistry.java From AIDR with GNU Affero General Public License v3.0 | 4 votes |
@Bean public ConnectionFactoryRegistry connectionFactoryRegistry() { return new ConnectionFactoryRegistry(); }
Example #5
Source File: UtilConnectionRegistry.java From AIDR with GNU Affero General Public License v3.0 | 4 votes |
@Bean public ConnectionFactoryRegistry connectionFactoryRegistry() { return new ConnectionFactoryRegistry(); }