From: Tomasz Golabek Date: Tue, 2 Jul 2019 11:55:03 +0000 (+0200) Subject: Autowired annotation for ApplicationConfigurer X-Git-Tag: 1.5.0~3 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=e8c9a5d47f585a914c5aed08e97c7e82f1f363f1;p=sdc%2Fsdc-workflow-designer.git 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 --- 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) {