Class ApplicationController<E extends Application,​D extends ApplicationDao<E>,​S extends ApplicationService<E,​D>>

    • Constructor Detail

      • ApplicationController

        public ApplicationController()
        Default constructor, which calls the type-constructor
      • ApplicationController

        protected ApplicationController​(Class<E> entityClass)
        Constructor that sets the concrete entity class for the controller. Subclasses MUST call this constructor.
    • Method Detail

      • setService

        @Autowired
        @Qualifier("applicationService")
        public void setService​(S service)
        We have to use Qualifier to define the correct service here. Otherwise, spring can not decide which service has to be autowired here as there are multiple candidates.
        Specified by:
        setService in class AbstractWebController<E extends Application,​D extends ApplicationDao<E>,​S extends ApplicationService<E,​D>>
        Parameters:
        service - the service to set
      • findAllApplications

        @RequestMapping(value="/findAll.action",
                        method=GET,
                        produces="application/json;charset=UTF-8")
        @ResponseBody
        public List<E> findAllApplications()