public interface SocialConfigurer
@EnableWebMvc.
@EnableWebMvc-annotated classes may implement this interface or extend SocialConfigurerAdapter,
which provides some default configuration.| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionFactories(ConnectionFactoryConfigurer connectionFactoryConfigurer,
Environment environment)
Callback method to allow configuration of
ConnectionFactorys. |
org.springframework.social.UserIdSource |
getUserIdSource()
Callback method to enable creation of a
UserIdSource that uniquely identifies the current user. |
org.springframework.social.connect.UsersConnectionRepository |
getUsersConnectionRepository(org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator)
Callback method to create an instance of
UsersConnectionRepository. |
void addConnectionFactories(ConnectionFactoryConfigurer connectionFactoryConfigurer, Environment environment)
ConnectionFactorys.connectionFactoryConfigurer - A configurer for adding ConnectionFactory instances.environment - The Spring environment, useful for fetching application credentials needed to create a ConnectionFactory instance.org.springframework.social.UserIdSource getUserIdSource()
UserIdSource that uniquely identifies the current user.UserIdSource.org.springframework.social.connect.UsersConnectionRepository getUsersConnectionRepository(org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator)
UsersConnectionRepository.
Will be used to create a request-scoped instance of ConnectionRepository for the current user.connectionFactoryLocator - A ConnectionFactoryLocator to be used by the UsersConnectionRepository.UsersConnectionRepository.