Uploaded image for project: 'Spring Data REST'
  1. Spring Data REST
  2. DATAREST-460

Make sure @Bean methods of RepositoryRestMvcConfiguration are called from proxied methods

    XMLWordPrintable

    Details

    • Sprint:
      55 - Evans SR2

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            olivergierke Oliver Drotbohm
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: