Class AbstractModel<T>

All Implemented Interfaces:
Direct Known Subclasses:
AdminMenuImpl, DataModelImpl, FormModelImpl, FormModelImpl, TemplateModelImpl

public abstract class AbstractModel<T> extends Object implements ReloadAction
An abstract implementation of any model.
  • Field Details

    • log

      protected final org.slf4j.Logger log
      The log for errors
    • modelProviders

      protected List<NiceModelProvider> modelProviders
      All model-providers which are used to build up this model.
  • Constructor Details

    • AbstractModel

      public AbstractModel(org.slf4j.Logger log, ReloadEventEmitter reloadEvent)
  • Method Details

    • onReload

      public abstract void onReload()
      Specified by:
      onReload in interface ReloadAction
    • setModelProviders

      @Autowired public void setModelProviders(List<NiceModelProvider> modelProviders)
    • addListener

      public void addListener(ConfigListener listener)
    • removeListener

      public void removeListener(ConfigListener listener)
    • fireFinished

      protected final void fireFinished()