Class AbstractProductDataProvider

    • Field Detail

      • MODIFIED_EXCEPTION_MESSAGE

        protected static final java.lang.String MODIFIED_EXCEPTION_MESSAGE
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractProductDataProvider

        public AbstractProductDataProvider​(IVersionChecker versionChecker)
        This constructor needs a IVersionChecker that is used to verify the compatibility of the product data versions
        Parameters:
        versionChecker - the verison checker to check the product data version
    • Method Detail

      • getDocumentBuilder

        protected javax.xml.parsers.DocumentBuilder getDocumentBuilder()
        Getting the thread local instance of DocumentBuilder
        Returns:
        a thread local instance of DocumentBuilder
      • isCompatibleToBaseVersion

        public boolean isCompatibleToBaseVersion()
        Description copied from interface: IProductDataProvider
        Return true if the version is compatible to the base version of this IProductDataProvider. The base version is the really actual version of the product data and should not be cached.
        Specified by:
        isCompatibleToBaseVersion in interface IProductDataProvider
        Returns:
        true if version is compatible
      • getBaseVersion

        public abstract java.lang.String getBaseVersion()
        Getting the really actual version of the product data. That means to look in the file, asking your service or your database or what ever is your product data base.
        Returns:
        the actual version of the product data
      • getVersionChecker

        public IVersionChecker getVersionChecker()
        Returns:
        Returns the versionChecker.