@Controller @RequestMapping(value="/plugins") public class PluginController<E extends Plugin,D extends PluginDao<E>,S extends PluginService<E,D>> extends AbstractWebController<E,D,S>
logger, service| Modifier | Constructor and Description |
|---|---|
|
PluginController()
Default constructor, which calls the type-constructor
|
protected |
PluginController(Class<E> entityClass)
Constructor that sets the concrete entity class for the controller.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<?> |
preCheckDelete(Integer pluginId)
Checks in which applications the given plugin is contained (and from which it
would be removed in case of deletion).
|
void |
setService(S service)
We have to use
Qualifier to define the correct service here. |
getEntityClass, getServicepublic PluginController()
@Autowired @Qualifier(value="pluginService") public void setService(S service)
Qualifier to define the correct service here.
Otherwise, spring can not decide which service has to be autowired here
as there are multiple candidates.setService in class AbstractWebController<E extends Plugin,D extends PluginDao<E>,S extends PluginService<E,D>>service - the service to set@RequestMapping(value="preCheckDelete.action",
method=POST)
public org.springframework.http.ResponseEntity<?> preCheckDelete(@RequestParam(value="pluginId")
Integer pluginId)
pluginId - Copyright © 2020 terrestris GmbH & Co. KG. All rights reserved.