Class WpsPrimitiveRestController<E extends WpsPrimitive,​D extends WpsPrimitiveDao<E>,​S extends WpsPrimitiveService<E,​D>>

    • Constructor Detail

      • WpsPrimitiveRestController

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

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

      • setService

        @Autowired
        @Qualifier("wpsPrimitiveService")
        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.
        Overrides:
        setService in class WpsParameterRestController<E extends WpsPrimitive,​D extends WpsPrimitiveDao<E>,​S extends WpsPrimitiveService<E,​D>>
        Parameters:
        service - the service to set