Class AbstractWebController<E extends PersistentObject,​D extends GenericHibernateDao<E,​java.lang.Integer>,​S extends AbstractCrudService<E,​D>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.logging.log4j.Logger LOG
      The LOGGER instance (that will be available in all subclasses)
      protected S service
      The AbstractCrudService for this controller.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractWebController​(java.lang.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
      java.lang.Class<E> getEntityClass()  
      S getService()  
      abstract void setService​(S service)
      Subclasses must implement this class and annotate it with Autowired and Qualifier!
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        protected final org.apache.logging.log4j.Logger LOG
        The LOGGER instance (that will be available in all subclasses)
    • Constructor Detail

      • AbstractWebController

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

      • setService

        public abstract void setService​(S service)
        Subclasses must implement this class and annotate it with Autowired and Qualifier!
        Parameters:
        service - the service to set
      • getService

        public S getService()
        Returns:
        the service
      • getEntityClass

        public java.lang.Class<E> getEntityClass()
        Returns:
        the entityClass