Class AbstractProductDataProvider
java.lang.Object
org.faktorips.runtime.productdataprovider.AbstractProductDataProvider
- All Implemented Interfaces:
IProductDataProvider
- Direct Known Subclasses:
ClassLoaderProductDataProvider
This is the abstract implementation for product data providers. For a description of product data
providers @see
IProductDataProvider- Author:
- dirmeier
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractProductDataProvider(IVersionChecker versionChecker) This constructor needs aIVersionCheckerthat is used to verify the compatibility of the product data versions -
Method Summary
Modifier and TypeMethodDescriptionabstract StringGetting the really actual version of the product data.protected DocumentBuilderGetting the thread local instance ofDocumentBuilderbooleanReturn true if the version is compatible to the base version of thisIProductDataProvider.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.faktorips.runtime.productdataprovider.IProductDataProvider
getEnumContentAsStream, getProductCmptData, getProductCmptGenerationData, getTableContentAsStream, getTestcaseElement, getToc, getTocEntryData, getVersion
-
Field Details
-
MODIFIED_EXCEPTION_MESSAGE
- See Also:
-
-
Constructor Details
-
AbstractProductDataProvider
This constructor needs aIVersionCheckerthat is used to verify the compatibility of the product data versions- Parameters:
versionChecker- the verison checker to check the product data version
-
-
Method Details
-
getDocumentBuilder
Getting the thread local instance ofDocumentBuilder- Returns:
- a thread local instance of
DocumentBuilder
-
isCompatibleToBaseVersion
public boolean isCompatibleToBaseVersion()Description copied from interface:IProductDataProviderReturn true if the version is compatible to the base version of thisIProductDataProvider. The base version is the really actual version of the product data and should not be cached.- Specified by:
isCompatibleToBaseVersionin interfaceIProductDataProvider- Returns:
- true if version is compatible
-
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
- Returns:
- Returns the versionChecker.
-