1 package org.onap.vid.controller;
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;
14 public class MsoConfig {
17 * Gets the object mapper.
19 * @return the object mapper
22 public ObjectMapper getObjectMapper() {
23 return new ObjectMapper();
27 public MsoRequestFactory createRequestDetailsFactory(){
28 return new MsoRequestFactory();
32 public MsoInterface getMsoClient(){
33 return new MsoRestClientNew();
37 public MsoBusinessLogic getMsoBusinessLogic(){
38 return new MsoBusinessLogicImpl(getMsoClient());