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) |
getApiHelperBeanDefinitionBuilder, getAuthenticationServiceBeanDefinition, getAuthenticationServiceClass, getConnectionFactoryBeanDefinition, isSocialSecurityAvailable, registerBeanDefinitions
protected 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.apiHelperClass
- the API helper classpublic BeanDefinition parse(Element element, ParserContext parserContext)
parse
in interface BeanDefinitionParser
protected String getAppId(Map<String,Object> allAttributes)
getAppId
in class ProviderConfigurationSupport
protected String getAppSecret(Map<String,Object> allAttributes)
getAppSecret
in class ProviderConfigurationSupport