All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mx.path.model.mdx.web.MdxSerializationConfiguration Maven / Gradle / Ivy

The newest version!
package com.mx.path.model.mdx.web;

import com.google.gson.Gson;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@SuppressWarnings("checkstyle:designforextension")
public class MdxSerializationConfiguration {
  @Bean(name = "gson")
  public MdxSerializerFactoryBean gsonBeanFactory() {
    MdxSerializerFactoryBean factory = new MdxSerializerFactoryBean();
    return factory;
  }

  @Bean
  public Gson gson() throws Exception {
    return gsonBeanFactory().getObject();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy