Package de.terrestris.shoguncore.rest
Class LayerDataSourceRestController<E extends LayerDataSource,D extends LayerDataSourceDao<E>,S extends LayerDataSourceService<E,D>>
- java.lang.Object
-
- de.terrestris.shoguncore.web.AbstractWebController<E,D,S>
-
- de.terrestris.shoguncore.rest.AbstractRestController<E,D,S>
-
- de.terrestris.shoguncore.rest.LayerDataSourceRestController<E,D,S>
-
@RestController @RequestMapping("/layerdatasources") public class LayerDataSourceRestController<E extends LayerDataSource,D extends LayerDataSourceDao<E>,S extends LayerDataSourceService<E,D>> extends AbstractRestController<E,D,S>- Author:
- Kai Volland, Nils Bühner
-
-
Field Summary
-
Fields inherited from class de.terrestris.shoguncore.rest.AbstractRestController
objectMapper
-
Fields inherited from class de.terrestris.shoguncore.web.AbstractWebController
logger, service
-
-
Constructor Summary
Constructors Modifier Constructor Description LayerDataSourceRestController()Default constructor, which calls the type-constructorprotectedLayerDataSourceRestController(Class<E> entityClass)Constructor that sets the concrete entity class for the controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetService(S service)We have to useQualifierto define the correct service here.-
Methods inherited from class de.terrestris.shoguncore.rest.AbstractRestController
delete, findAll, findById, findBySimpleFilter, save, update
-
Methods inherited from class de.terrestris.shoguncore.web.AbstractWebController
getEntityClass, getService
-
-
-
-
Method Detail
-
setService
@Autowired @Qualifier("layerDataSourceService") public void setService(S service)We have to useQualifierto define the correct service here. Otherwise, spring can not decide which service has to be autowired here as there are multiple candidates.- Specified by:
setServicein classAbstractWebController<E extends LayerDataSource,D extends LayerDataSourceDao<E>,S extends LayerDataSourceService<E,D>>- Parameters:
service- the service to set
-
-