Package org.faktorips.productdataservice
Class ProductDataService
- java.lang.Object
-
- org.faktorips.productdataservice.ProductDataService
-
- All Implemented Interfaces:
IProductDataService
public class ProductDataService extends Object implements IProductDataService
An EJB 3.0 stateless session bean providing product data. The table of content is loaded by theTocProviderusing the contextClassLoaderofThread.currentThread()to find the product data resources. Once the table of content is loaded we never reload and do not look for file changes. We assume that the application server creates new instances after deploying new product data.- Author:
- dirmeier
-
-
Field Summary
Fields Modifier and Type Field Description static LoggerLOGGERstatic StringTOCFILE_PROPERTY_KEY
-
Constructor Summary
Constructors Constructor Description ProductDataService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlTimestampDatagetEnumContent(String className)XmlTimestampDatagetProductCmptData(String ipsObjectId)StringgetProductDataVersion()XmlTimestampDatagetTableContent(String qName)XmlTimestampDatagetTestCaseData(String qName)XmlTimestampDatagetTocData()XmlTimestampDatagetTocEntryData(Class<?> type, String qName)
-
-
-
Field Detail
-
LOGGER
public static final Logger LOGGER
-
TOCFILE_PROPERTY_KEY
public static final String TOCFILE_PROPERTY_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTocData
public XmlTimestampData getTocData()
- Specified by:
getTocDatain interfaceIProductDataService
-
getProductDataVersion
public String getProductDataVersion()
- Specified by:
getProductDataVersionin interfaceIProductDataService
-
getProductCmptData
public XmlTimestampData getProductCmptData(String ipsObjectId)
- Specified by:
getProductCmptDatain interfaceIProductDataService
-
getTestCaseData
public XmlTimestampData getTestCaseData(String qName)
- Specified by:
getTestCaseDatain interfaceIProductDataService
-
getTableContent
public XmlTimestampData getTableContent(String qName)
- Specified by:
getTableContentin interfaceIProductDataService
-
getEnumContent
public XmlTimestampData getEnumContent(String className)
- Specified by:
getEnumContentin interfaceIProductDataService
-
getTocEntryData
public XmlTimestampData getTocEntryData(Class<?> type, String qName)
- Specified by:
getTocEntryDatain interfaceIProductDataService
-
-