BAEL-434 Moved project from roo to spring-roo folder. (#1673)

* Code for Dependency Injection Article.

* Added Java based configuration. Downloaded formatter.xml and reformatted
all changed files. Manually changed tab into 4 spaces in XML
configuration files.

* BAEL-434 - Spring Roo project files generated by Spring Roo. No
formatting applied. Added POM, java and resources folders.

* Moved project from roo to spring-roo folder.
This commit is contained in:
iaforek
2017-04-18 14:18:31 +01:00
committed by pedja4
parent 63c8423051
commit 33fef603b3
104 changed files with 0 additions and 0 deletions
@@ -0,0 +1,41 @@
package com.baeldung.web;
import com.baeldung.domain.Book;
import com.baeldung.service.api.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.jackson.JsonObjectDeserializer;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.convert.ConversionService;
import org.springframework.roo.addon.web.mvc.controller.annotations.config.RooDeserializer;
/**
* = BookDeserializer
TODO Auto-generated class documentation
*
*/
@RooDeserializer(entity = Book.class)
public class BookDeserializer extends JsonObjectDeserializer<Book> {
/**
* TODO Auto-generated attribute documentation
*
*/
private BookService bookService;
/**
* TODO Auto-generated attribute documentation
*
*/
private ConversionService conversionService;
/**
* TODO Auto-generated constructor documentation
*
* @param bookService
* @param conversionService
*/
@Autowired
public BookDeserializer(@Lazy BookService bookService, ConversionService conversionService) {
this.bookService = bookService;
this.conversionService = conversionService;
}
}