Class LayerController<E extends Layer,​D extends LayerDao<E>,​S extends LayerService<E,​D>>


  • @Controller
    @RequestMapping("/layer")
    public abstract class LayerController<E extends Layer,​D extends LayerDao<E>,​S extends LayerService<E,​D>>
    extends AbstractWebController<E,​D,​S>
    Author:
    Johannes Weskamm, Kai Volland, Nils Bühner
    • Constructor Detail

      • LayerController

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

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

      • setService

        @Autowired
        @Qualifier("layerService")
        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 Layer,​D extends LayerDao<E>,​S extends LayerService<E,​D>>
        Parameters:
        service - the service to set