So, therefore it would create BeanDefinitions twice for the same "bean" but it will have the same bean name, so therefore in the Map, one would overwrite the other in the Map. Then after the BeanFactoryPostProcessors, during Instantiation and BeanPostProcessors, they would only instantiate and create a single instance, not dups.
Also, the samples do not run on my machine. Running mvn tomcat:run or even just mvn package I get lots of errors.
Here is a sample of those errors
Code:
[ERROR] class ExplicitSocialConfig
[ERROR] /Users/bytor99999/Java/GitHubRepos/spring-social-samples/spring-social-showcase-sec/src/main/java/org/springframework/social/showcase/config/SocialConfig.java:[82,13] error: cannot find symbol
[ERROR] class SocialConfig
[ERROR] /Users/bytor99999/Java/GitHubRepos/spring-social-samples/spring-social-showcase-sec/src/main/java/org/springframework/social/showcase/linkedin/LinkedInProfileController.java:[38,13] error: cannot find symbol
[ERROR] class LinkedInProfileController
[ERROR] /Users/bytor99999/Java/GitHubRepos/spring-social-samples/spring-social-showcase-sec/src/main/java/org/springframework/social/showcase/linkedin/LinkedInProfileController.java:[38,79] error: cannot find symbol
I can run the quickstart sample.
Actually, sorry I know why they won't run. It is because they are pointing to BUILD-SNAPSHOT, not M2. Which means we can't access them through our Nexus artifactory. I will edit the poms to point to M2 and try again.
Thanks
Mark