public abstract class ProviderConfigurationSupport
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<?> |
apiBindingType |
protected java.lang.Class<? extends ApiHelper<?>> |
apiHelperClass |
protected java.lang.Class<?> |
authenticationServiceClass |
protected java.lang.Class<? extends ConnectionFactory<?>> |
connectionFactoryClass |
| Constructor and Description |
|---|
ProviderConfigurationSupport(java.lang.Class<? extends ConnectionFactory<?>> connectionFactoryClass,
java.lang.Class<? extends ApiHelper<?>> apiHelperClass) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.beans.factory.support.BeanDefinitionBuilder |
getApiHelperBeanDefinitionBuilder(java.util.Map<java.lang.String,java.lang.Object> allAttributes)
Subclassing hook to allow api helper bean to be configured with attributes from annotation
|
protected abstract java.lang.String |
getAppId(java.util.Map<java.lang.String,java.lang.Object> allAttributes) |
protected abstract java.lang.String |
getAppSecret(java.util.Map<java.lang.String,java.lang.Object> allAttributes) |
protected org.springframework.beans.factory.config.BeanDefinition |
getAuthenticationServiceBeanDefinition(java.lang.String appId,
java.lang.String appSecret,
java.util.Map<java.lang.String,java.lang.Object> allAttributes) |
protected java.lang.Class<? extends SocialAuthenticationService<?>> |
getAuthenticationServiceClass() |
protected org.springframework.beans.factory.config.BeanDefinition |
getConnectionFactoryBeanDefinition(java.lang.String appId,
java.lang.String appSecret,
java.util.Map<java.lang.String,java.lang.Object> allAttributes)
Creates a BeanDefinition for a provider connection factory.
|
protected static boolean |
isSocialSecurityAvailable() |
protected org.springframework.beans.factory.config.BeanDefinition |
registerBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
java.util.Map<java.lang.String,java.lang.Object> allAttributes) |
protected final java.lang.Class<? extends ConnectionFactory<?>> connectionFactoryClass
protected final java.lang.Class<? extends ApiHelper<?>> apiHelperClass
protected final java.lang.Class<?> apiBindingType
protected java.lang.Class<?> authenticationServiceClass
public ProviderConfigurationSupport(java.lang.Class<? extends ConnectionFactory<?>> connectionFactoryClass, java.lang.Class<? extends ApiHelper<?>> apiHelperClass)
protected java.lang.Class<? extends SocialAuthenticationService<?>> getAuthenticationServiceClass()
protected static boolean isSocialSecurityAvailable()
protected org.springframework.beans.factory.config.BeanDefinition getConnectionFactoryBeanDefinition(java.lang.String appId,
java.lang.String appSecret,
java.util.Map<java.lang.String,java.lang.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 org.springframework.beans.factory.config.BeanDefinition getAuthenticationServiceBeanDefinition(java.lang.String appId,
java.lang.String appSecret,
java.util.Map<java.lang.String,java.lang.Object> allAttributes)
protected org.springframework.beans.factory.config.BeanDefinition registerBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
java.util.Map<java.lang.String,java.lang.Object> allAttributes)
protected abstract java.lang.String getAppId(java.util.Map<java.lang.String,java.lang.Object> allAttributes)
protected abstract java.lang.String getAppSecret(java.util.Map<java.lang.String,java.lang.Object> allAttributes)
protected org.springframework.beans.factory.support.BeanDefinitionBuilder getApiHelperBeanDefinitionBuilder(java.util.Map<java.lang.String,java.lang.Object> allAttributes)
allAttributes - additional attributes that may be used when creating the API helper bean.BeanDefinitionBuilder for the API Helper