Class AbstractJaxbConfigDao<K,​V>

    • Constructor Detail

      • AbstractJaxbConfigDao

        public AbstractJaxbConfigDao​(Class<K> entityClass,
                                     String description)

        Constructor for AbstractJaxbConfigDao.

        Parameters:
        entityClass - a Class object.
        description - a String object.
    • Method Detail

      • translateConfig

        protected abstract V translateConfig​(K config)

        translateConfig

        Parameters:
        config - a K object.
        Returns:
        a V object.
      • loadConfig

        protected V loadConfig​(org.springframework.core.io.Resource resource)

        loadConfig

        Parameters:
        resource - a Resource object.
        Returns:
        a V object.
      • afterPropertiesSet

        public void afterPropertiesSet()

        afterPropertiesSet

        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • getConfigResource

        public org.springframework.core.io.Resource getConfigResource()

        getConfigResource

        Returns:
        a Resource object.
      • setConfigResource

        public void setConfigResource​(org.springframework.core.io.Resource configResource)

        setConfigResource

        Parameters:
        configResource - a Resource object.
      • getReloadCheckInterval

        public Long getReloadCheckInterval()

        getReloadCheckInterval

        Returns:
        a Long object.
      • setReloadCheckInterval

        public void setReloadCheckInterval​(Long reloadCheckInterval)

        setReloadCheckInterval

        Parameters:
        reloadCheckInterval - a Long object.
      • getDescription

        public String getDescription()

        getDescription

        Returns:
        a String object.
      • addOnReloadedCallback

        public void addOnReloadedCallback​(java.util.function.Consumer<V> callback)
        Parameters:
        callback - a callback that will be called when the entity maintained by this DAO is reloaded