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
ConnectionFactory s. |
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)
ConnectionFactory
s.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
.