Package com.inet.report.cache
Interface EngineFactory
-
- All Known Implementing Classes:
EngineFactoryImpl
public interface EngineFactory
An instance of this interface creates aReportCacheKey
andEngine
based on the properties. TheCache
is calling the current factory to build keys and engines. You can implement yourEngineFactory
to create or modify anEngine
with RDC. You can set your implementation withCache.setEngineFactory(EngineFactory)
. The created key must be unique for the createdEngine
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Engine
createEngine(java.util.Properties props)
Creates anEngine
based on the properties.ReportCacheKey
getKey(java.util.Properties props)
Creates an unique key for theEngine
thatcreateEngine(Properties)
returns.
-
-
-
Method Detail
-
createEngine
Engine createEngine(java.util.Properties props) throws ReportException
Creates anEngine
based on the properties.- Parameters:
props
- contains parameters for theEngine
. e.g. "export_fmt" =Engine.EXPORT_PDF
. The properties should not modified.- Returns:
- the created
Engine
- Throws:
ReportException
- will be thrown when setting parameters for theEngine
failed- Since:
- 6.0
-
getKey
ReportCacheKey getKey(java.util.Properties props) throws ReportException
Creates an unique key for theEngine
thatcreateEngine(Properties)
returns. This value can benull
. If the value isnull
then the default key generation algorithm is used.- Parameters:
props
- contains parameters for theEngine
. Every value that modify theEngine
should be part of the key. The properties should not be modified.- Returns:
- the created
ReportCacheKey
- Throws:
ReportException
- will be thrown when the parameters are incomplete.- Since:
- 6.0
-
-