Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure @Bean methods of RepositoryRestMvcConfiguration are called from proxied methods [DATAREST-460] #839

Closed
spring-projects-issues opened this issue Jan 20, 2015 · 0 comments
Assignees

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Jan 20, 2015

Oliver Drotbohm opened DATAREST-460 and commented

Some methods in RepositoryRestMvcConfiguration are private but call @Bean annotated methods in turn. These method calls will not get intercepted correctly as private methods are not intercepted by the CGLib generated subtype of the configuration class. That means that @Bean methods called from the private methods will not be routed through the interceptor and thus Spring's bean management (scopes, invocation of callbacks) will not be applied


Affects: 2.1.4 (Dijkstra SR4), 2.2.1 (Evans SR1), 2.3 M1 (Fowler)

Referenced from: commits 1755a82, 34ecc05, 93202f3

Backported to: 2.2.2 (Evans SR2), 2.1.5 (Dijkstra SR5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants