1 package org.onap.vid.controllers;
3 import com.fasterxml.jackson.databind.ObjectMapper;
4 import org.onap.vid.factories.MsoRequestFactory;
5 import org.onap.vid.mso.MsoBusinessLogic;
6 import org.onap.vid.mso.MsoBusinessLogicImpl;
7 import org.onap.vid.mso.MsoInterface;
8 import org.onap.vid.mso.rest.MsoRestClientNew;
9 import org.springframework.context.annotation.Bean;
10 import org.springframework.context.annotation.Configuration;
11 import org.togglz.core.manager.FeatureManager;
15 public class MsoConfig {
18 * Gets the object mapper.
20 * @return the object mapper
23 public ObjectMapper getObjectMapper() {
24 return new ObjectMapper();
28 public MsoRequestFactory createRequestDetailsFactory(){
29 return new MsoRequestFactory();
33 public MsoInterface getMsoClient(){
34 return new MsoRestClientNew();
38 public MsoBusinessLogic getMsoBusinessLogic(MsoInterface msoClient, FeatureManager featureManager){
39 return new MsoBusinessLogicImpl(msoClient, featureManager);