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. |
UserIdSource |
getUserIdSource()
Callback method to enable creation of a
UserIdSource that uniquely identifies the current user. |
UsersConnectionRepository |
getUsersConnectionRepository(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.UserIdSource getUserIdSource()
UserIdSource that uniquely identifies the current user.UserIdSource.UsersConnectionRepository getUsersConnectionRepository(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.