public abstract class AbstractProviderConfigBeanDefinitionParser extends ProviderConfigurationSupport implements BeanDefinitionParser
ConnectionFactoryLocator bean if none exists and registers the ConnectionFactory bean with the ConnectionFactoryLocator.
Also creates a request-scoped API binding bean retrieved from the connection repository.apiBindingType, apiHelperClass, authenticationServiceClass, connectionFactoryClass| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProviderConfigBeanDefinitionParser(Class<? extends ConnectionFactory<?>> connectionFactoryClass,
Class<? extends ApiHelper<?>> apiHelperClass)
Constructs a connection factory-creating
BeanDefinitionParser. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAppId(Map<String,Object> allAttributes) |
protected String |
getAppSecret(Map<String,Object> allAttributes) |
BeanDefinition |
parse(Element element,
ParserContext parserContext) |
getAuthenticationServiceBeanDefinition, getAuthenticationServiceClass, getConnectionFactoryBeanDefinition, isSocialSecurityAvailable, registerBeanDefinitionsprotected AbstractProviderConfigBeanDefinitionParser(Class<? extends ConnectionFactory<?>> connectionFactoryClass, Class<? extends ApiHelper<?>> apiHelperClass)
BeanDefinitionParser.connectionFactoryClass - The type of ConnectionFactory to create. Must have a two-argument constructor taking an application's ID and secret as Strings.public BeanDefinition parse(Element element, ParserContext parserContext)
parse in interface BeanDefinitionParserprotected String getAppId(Map<String,Object> allAttributes)
getAppId in class ProviderConfigurationSupportprotected String getAppSecret(Map<String,Object> allAttributes)
getAppSecret in class ProviderConfigurationSupport