Package org.springframework.hateoas.hal.Jackson2HalModule

Examples of org.springframework.hateoas.hal.Jackson2HalModule.HalHandlerInstantiator


  @Before
  public void setUp() {

    this.mapper = new ObjectMapper();
    this.mapper.registerModule(new Jackson2HalModule());
    this.mapper.setHandlerInstantiator(new HalHandlerInstantiator(new EvoInflectorRelProvider(), null));
  }
View Full Code Here


  }

  @Bean
  public ObjectMapper halObjectMapper() {

    HalHandlerInstantiator instantiator = new HalHandlerInstantiator(getDefaultedRelProvider(), curieProvider);

    ObjectMapper mapper = basicObjectMapper();
    mapper.registerModule(persistentEntityJackson2Module());
    mapper.registerModule(new Jackson2HalModule());
    mapper.setHandlerInstantiator(instantiator);
View Full Code Here

  @Before
  public void setUpModule() {

    mapper.registerModule(new Jackson2HalModule());
    mapper.setHandlerInstantiator(new HalHandlerInstantiator(new AnnotationRelProvider(), null));
  }
View Full Code Here

  private static ObjectMapper getCuriedObjectMapper(CurieProvider provider) {

    ObjectMapper mapper = new ObjectMapper();
    mapper.registerModule(new Jackson2HalModule());
    mapper.setHandlerInstantiator(new HalHandlerInstantiator(new AnnotationRelProvider(), provider));

    return mapper;
  }
View Full Code Here

TOP

Related Classes of org.springframework.hateoas.hal.Jackson2HalModule.HalHandlerInstantiator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.