I am following existing Social Implementations (facebook, twitter) as guide to add a new Service Provider.
Not sure why I am getting the following error messages, can somebody provide some feedback?
I have a hunch it could missing libraries, if so can I have the names?
Code:Class 1. Error: The type org.springframework.beans.factory.xml.NamespaceHandler cannot be resolved. It is indirectly referenced from required .class files import org.springframework.social.config.xml.AbstractProviderConfigBeanDefinitionParser; import org.springframework.social.config.xml.AbstractProviderConfigNamespaceHandler; public class TestNamespaceHandler extends AbstractProviderConfigNamespaceHandler { @Override protected AbstractProviderConfigBeanDefinitionParser getProviderConfigBeanDefinitionParser() { return new TestConfigBeanDefinitionParser(); } Class 2 . Error: BeanDefinition cannot be resolved to a type Error: UserIdSource cannot be resolved to a type public class TestConfigBeanDefinitionParser extends AbstractProviderConfigBeanDefinitionParser { public TestConfigBeanDefinitionParser() { super(TestConnectionFactory.class, TestApiHelper.class); } @Override protected Class<? extends SocialAuthenticationService<?>> getAuthenticationServiceClass() { return TestAuthenticationService.class; } @Override protected BeanDefinition getConnectionFactoryBeanDefinition(String appId, String appSecret, Map<String, Object> allAttributes) { BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(TestConnectionFactory.class).addConstructorArgValue(appId).addConstructorArgValue(appSecret); if (allAttributes.containsKey("app-namespace")) { builder.addConstructorArgValue(allAttributes.get("app-namespace")); } return builder.getBeanDefinition(); } static class TestApiHelper implements ApiHelper<Test> { private final UsersConnectionRepository usersConnectionRepository; private final UserIdSource userIdSource; ..... }


Reply With Quote
