Package de.terrestris.shoguncore.web
Class ApplicationController<E extends Application,D extends ApplicationDao<E>,S extends ApplicationService<E,D>>
- java.lang.Object
-
- de.terrestris.shoguncore.web.AbstractWebController<E,D,S>
-
- de.terrestris.shoguncore.web.ApplicationController<E,D,S>
-
@Controller @RequestMapping("/application") public class ApplicationController<E extends Application,D extends ApplicationDao<E>,S extends ApplicationService<E,D>> extends AbstractWebController<E,D,S>- Author:
- Nils Bühner
-
-
Field Summary
-
Fields inherited from class de.terrestris.shoguncore.web.AbstractWebController
logger, service
-
-
Constructor Summary
Constructors Modifier Constructor Description ApplicationController()Default constructor, which calls the type-constructorprotectedApplicationController(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 List<E>findAllApplications()voidsetService(S service)We have to useQualifierto define the correct service here.-
Methods inherited from class de.terrestris.shoguncore.web.AbstractWebController
getEntityClass, getService
-
-
-
-
Method Detail
-
setService
@Autowired @Qualifier("applicationService") 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 Application,D extends ApplicationDao<E>,S extends ApplicationService<E,D>>- Parameters:
service- the service to set
-
-