Autowired annotation for ApplicationConfigurer 80/90780/2
authorTomasz Golabek <tomasz.golabek@nokia.com>
Tue, 2 Jul 2019 11:55:03 +0000 (13:55 +0200)
committerAvi Gaffa <avi.gaffa@amdocs.com>
Wed, 10 Jul 2019 12:39:57 +0000 (12:39 +0000)
Injection of the properties moved to the constructor replacing
field annotations.

Change-Id: Iba78b8171f8ee022c1f91637a12fb40e93162459
Issue-ID: SDC-2407
Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ApplicationConfigurer.java

index 15df33f..a5cce46 100644 (file)
@@ -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) {