Class PluginRestController<E extends Plugin,​D extends PluginDao<E>,​S extends PluginService<E,​D>>

    • Constructor Detail

      • PluginRestController

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

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

      • getExternalPluginSource

        @RequestMapping(value="/{simpleClassName}.js",
                        method=GET)
        @ResponseBody
        public org.springframework.http.ResponseEntity<String> getExternalPluginSource​(@PathVariable
                                                                                       String simpleClassName)
        Returns:
      • setService

        @Autowired
        @Qualifier("pluginService")
        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 Plugin,​D extends PluginDao<E>,​S extends PluginService<E,​D>>
        Parameters:
        service - the service to set