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

Allow to register custom RepositoryProxyPostProcessors [DATACMNS-1688] #2111

Closed
spring-projects-issues opened this issue Mar 19, 2020 · 3 comments
Assignees
Labels
in: repository type: enhancement

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Mar 19, 2020

MyeongHyeonLee opened DATACMNS-1688 and commented

I want to set MethodInterceptor for a repository operation. I would like to be able to apply the RepositoryProxyPostProcessor registered as bean when creating proxy repository.

 


Affects: 2.3 M4 (Neumann)

Issue Links:

  • DATACMNS-1764 Allow registration of QueryMethod invocation listeners

  • DATACMNS-1538 Add support for custom repository proxy post processors in CDI

Referenced from: pull request #455

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Mar 19, 2020

Oliver Drotbohm commented

Would you mind elaborating on your actual use case? Repositories are Spring Beans and thus subject to standard AOP means to apply additional functionality. Doesn't that do the trick for you?

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Mar 19, 2020

MyeongHyeonLee commented

That's right, but I want to add additional function to the Transaction scope.

If i use AOP, it runs before executing TransactionInterceptor

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Jul 3, 2020

Mark Paluch commented

We have also another case where we want to register a MethodInterceptor to collect invocation metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: repository type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants