From e8c9a5d47f585a914c5aed08e97c7e82f1f363f1 Mon Sep 17 00:00:00 2001 From: Tomasz Golabek Date: Tue, 2 Jul 2019 13:55:03 +0200 Subject: Autowired annotation for ApplicationConfigurer Injection of the properties moved to the constructor replacing field annotations. Change-Id: Iba78b8171f8ee022c1f91637a12fb40e93162459 Issue-ID: SDC-2407 Signed-off-by: Tomasz Golabek --- .../onap/sdc/workflow/server/config/ApplicationConfigurer.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ApplicationConfigurer.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ApplicationConfigurer.java index 15df33f8..a5cce460 100644 --- a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ApplicationConfigurer.java +++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ApplicationConfigurer.java @@ -12,6 +12,9 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + * ============LICENSE_END========================================================= + * Modifications copyright (c) 2019 Nokia + * ================================================================================ */ package org.onap.sdc.workflow.server.config; @@ -28,8 +31,12 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @Configuration public class ApplicationConfigurer implements WebMvcConfigurer { + private final LoggingInterceptor loggingInterceptor; + @Autowired - LoggingInterceptor loggingInterceptor; + public ApplicationConfigurer(LoggingInterceptor loggingInterceptor) { + this.loggingInterceptor = loggingInterceptor; + } @Override public void addInterceptors(InterceptorRegistry registry) { -- cgit 1.2.3-korg