aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-be
diff options
context:
space:
mode:
authorTomasz Golabek <tomasz.golabek@nokia.com>2019-07-02 13:55:03 +0200
committerAvi Gaffa <avi.gaffa@amdocs.com>2019-07-10 12:39:57 +0000
commite8c9a5d47f585a914c5aed08e97c7e82f1f363f1 (patch)
treebf37c67459819bbe25008c8d69c84d2a215fc359 /workflow-designer-be
parent36d376ea2124d88d627a0ada4e176e37e070f571 (diff)
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 <tomasz.golabek@nokia.com>
Diffstat (limited to 'workflow-designer-be')
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/server/config/ApplicationConfigurer.java9
1 files changed, 8 insertions, 1 deletions
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) {