Class DictionaryBootstrap

  • All Implemented Interfaces:
    DictionaryListener

    public class DictionaryBootstrap
    extends java.lang.Object
    implements DictionaryListener
    Bootstrap Dictionary DAO with pre-defined models & message resources (from classpath)
    Author:
    David Caruana, janv
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterDictionaryDestroy()
      Callback once dictionary destroy is complete (executed in the current tenant context)
      void afterDictionaryInit()
      Callback once dictionary initialisation is complete (executed in the current tenant context)
      void bootstrap()
      Bootstrap the Dictionary - register and populate
      void onDictionaryInit()
      Callback for (re-)initialising the Dictionary caches (executed in the current tenant context)
      void setDictionaryDAO​(DictionaryDAO dictionaryDAO)
      Sets the Dictionary DAO
      void setGlobalProperties​(java.util.Properties globalProperties)
      Sets the global properties
      void setLabels​(java.util.List<java.lang.String> labels)
      Sets the initial list of models to bootstrap with
      void setModels​(java.util.List<java.lang.String> modelResources)
      Sets the initial list of models to bootstrap with
      void setTenantService​(TenantService tenantService)
      Sets the Tenant Service
      • Methods inherited from class java.lang.Object

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

      • DictionaryBootstrap

        public DictionaryBootstrap()
    • Method Detail

      • setDictionaryDAO

        public void setDictionaryDAO​(DictionaryDAO dictionaryDAO)
        Sets the Dictionary DAO
        Parameters:
        dictionaryDAO - DictionaryDAO
      • setTenantService

        public void setTenantService​(TenantService tenantService)
        Sets the Tenant Service
        Parameters:
        tenantService - TenantService
      • setGlobalProperties

        public void setGlobalProperties​(java.util.Properties globalProperties)
        Sets the global properties
        Parameters:
        globalProperties -
      • setModels

        public void setModels​(java.util.List<java.lang.String> modelResources)
        Sets the initial list of models to bootstrap with
        Parameters:
        modelResources - the model names
      • setLabels

        public void setLabels​(java.util.List<java.lang.String> labels)
        Sets the initial list of models to bootstrap with
        Parameters:
        labels - the labels
      • bootstrap

        public void bootstrap()
        Bootstrap the Dictionary - register and populate
      • onDictionaryInit

        public void onDictionaryInit()
        Description copied from interface: DictionaryListener
        Callback for (re-)initialising the Dictionary caches (executed in the current tenant context)
        Specified by:
        onDictionaryInit in interface DictionaryListener