public abstract class ProviderConfigurationSupport extends Object
Modifier and Type | Field and Description |
---|---|
protected Class<?> |
apiBindingType |
protected Class<? extends ApiHelper<?>> |
apiHelperClass |
protected Class<?> |
authenticationServiceClass |
protected Class<? extends ConnectionFactory<?>> |
connectionFactoryClass |
Constructor and Description |
---|
ProviderConfigurationSupport(Class<? extends ConnectionFactory<?>> connectionFactoryClass,
Class<? extends ApiHelper<?>> apiHelperClass) |
Modifier and Type | Method and Description |
---|---|
protected BeanDefinitionBuilder |
getApiHelperBeanDefinitionBuilder(Map<String,Object> allAttributes)
Subclassing hook to allow api helper bean to be configured with attributes from annotation
|
protected abstract String |
getAppId(Map<String,Object> allAttributes) |
protected abstract String |
getAppSecret(Map<String,Object> allAttributes) |
protected BeanDefinition |
getAuthenticationServiceBeanDefinition(String appId,
String appSecret,
Map<String,Object> allAttributes) |
protected Class<? extends SocialAuthenticationService<?>> |
getAuthenticationServiceClass() |
protected BeanDefinition |
getConnectionFactoryBeanDefinition(String appId,
String appSecret,
Map<String,Object> allAttributes)
Creates a BeanDefinition for a provider connection factory.
|
protected static boolean |
isSocialSecurityAvailable() |
protected BeanDefinition |
registerBeanDefinitions(BeanDefinitionRegistry registry,
Map<String,Object> allAttributes) |
protected final Class<? extends ConnectionFactory<?>> connectionFactoryClass
protected final Class<?> apiBindingType
protected Class<?> authenticationServiceClass
public ProviderConfigurationSupport(Class<? extends ConnectionFactory<?>> connectionFactoryClass, Class<? extends ApiHelper<?>> apiHelperClass)
protected Class<? extends SocialAuthenticationService<?>> getAuthenticationServiceClass()
protected static boolean isSocialSecurityAvailable()
protected BeanDefinition getConnectionFactoryBeanDefinition(String appId, String appSecret, Map<String,Object> allAttributes)
appId
- The application's App IDappSecret
- The application's App SecretallAttributes
- All attributes available on the configuration element. Useful for provider-specific configuration.protected BeanDefinition getAuthenticationServiceBeanDefinition(String appId, String appSecret, Map<String,Object> allAttributes)
protected BeanDefinition registerBeanDefinitions(BeanDefinitionRegistry registry, Map<String,Object> allAttributes)
protected BeanDefinitionBuilder getApiHelperBeanDefinitionBuilder(Map<String,Object> allAttributes)
allAttributes
- additional attributes that may be used when creating the API helper bean.BeanDefinitionBuilder
for the API Helper