You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by mm...@apache.org on 2021/09/19 06:21:33 UTC

[syncope] branch master updated: turn off bean proxying for wa; fixes typo (#290)

This is an automated email from the ASF dual-hosted git repository.

mmoayyed pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new cc1dd72  turn off bean proxying for wa; fixes typo (#290)
cc1dd72 is described below

commit cc1dd7243016778c51122f8db542fc8d560596b4
Author: Misagh Moayyed <mm...@gmail.com>
AuthorDate: Sun Sep 19 10:21:25 2021 +0400

    turn off bean proxying for wa; fixes typo (#290)
---
 .../syncope/wa/starter/config/SyncopeWAConfiguration.java      | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/wa/starter/src/main/java/org/apache/syncope/wa/starter/config/SyncopeWAConfiguration.java b/wa/starter/src/main/java/org/apache/syncope/wa/starter/config/SyncopeWAConfiguration.java
index 434c2de..206d10b 100644
--- a/wa/starter/src/main/java/org/apache/syncope/wa/starter/config/SyncopeWAConfiguration.java
+++ b/wa/starter/src/main/java/org/apache/syncope/wa/starter/config/SyncopeWAConfiguration.java
@@ -93,7 +93,7 @@ import org.springframework.context.ConfigurableApplicationContext;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
 
-@Configuration(value = "SyncopeWAConfiguration", proxyBeanMethods = true)
+@Configuration(value = "SyncopeWAConfiguration", proxyBeanMethods = false)
 public class SyncopeWAConfiguration {
 
     @Autowired
@@ -240,7 +240,7 @@ public class SyncopeWAConfiguration {
         return plan -> plan.registerAuditTrailManager(new SyncopeWAAuditTrailManager(restClient));
     }
 
-    @ConditionalOnMissingBean(name = "syncopWaEventRepositoryFilter")
+    @ConditionalOnMissingBean(name = "syncopeWaEventRepositoryFilter")
     @Bean
     public CasEventRepositoryFilter syncopeWAEventRepositoryFilter() {
         return CasEventRepositoryFilter.noOp();
@@ -248,8 +248,10 @@ public class SyncopeWAConfiguration {
 
     @Autowired
     @Bean
-    public CasEventRepository casEventRepository(final WARestClient restClient) {
-        return new SyncopeWAEventRepository(syncopeWAEventRepositoryFilter(), restClient);
+    public CasEventRepository casEventRepository(final WARestClient restClient,
+                                                 @Qualifier("syncopeWAEventRepositoryFilter")
+                                                 final CasEventRepositoryFilter syncopeWAEventRepositoryFilter) {
+        return new SyncopeWAEventRepository(syncopeWAEventRepositoryFilter, restClient);
     }
 
     @Autowired