Package de.terrestris.shoguncore.web
Class AbstractWebController<E extends PersistentObject,D extends GenericHibernateDao<E,Integer>,S extends AbstractCrudService<E,D>>
- java.lang.Object
-
- de.terrestris.shoguncore.web.AbstractWebController<E,D,S>
-
- Direct Known Subclasses:
AbstractRestController,ApplicationController,FileController,LayerController,ModuleController,PluginController,TreeNodeController,UserController,WpsParameterController
public abstract class AbstractWebController<E extends PersistentObject,D extends GenericHibernateDao<E,Integer>,S extends AbstractCrudService<E,D>> extends Object
This abstract controller class provides basic web controller functionality: A logger and a service.- Author:
- Daniel Koch
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.logging.log4j.LoggerloggerThe LOGGER instance (that will be available in all subclasses)protected SserviceTheAbstractCrudServicefor this controller.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractWebController(Class<E> entityClass)Constructor that sets the concrete entity class for the controller.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Class<E>getEntityClass()SgetService()abstract voidsetService(S service)Subclasses must implement this class and annotate it withAutowiredandQualifier!
-
-
-
Field Detail
-
logger
protected static final org.apache.logging.log4j.Logger logger
The LOGGER instance (that will be available in all subclasses)
-
service
protected S extends AbstractCrudService<E,D> service
TheAbstractCrudServicefor this controller.
-
-