I'm trying to add social media log in to my app.
To log in to facebook I need two abstractclasses, in the example I'm using they're autowired, but you can't make an instance of an abstract class, ergo I can't create a bean of it, so I also can't autowire them.
Anyone an Idea how to solve this? Just to be clear, I'm talking about ConnectionFactoryLocator and UsersConnectionRepository from the org.springframework.social.connect package
It's good to be able to use someting, it's better to understand how it works.
You can inject interfaces and abstract classes as long as there is one (primary) implementation provided using @Component or @Bean. I said "primary" because in case you have more than one, you can mark one with @Primary and that one "wins" over any other.
And when in doubt, you can also use qualifiers in both the provider and autowiring.