Package com.inet.report.cache
Class EngineFactoryImpl
- java.lang.Object
-
- com.inet.report.cache.EngineFactoryImpl
-
- All Implemented Interfaces:
EngineFactory
public class EngineFactoryImpl extends java.lang.Object implements EngineFactory
This is the default implementation of the EngineFactory. You can extend it to create your own EngineFactory.- See Also:
EngineFactory
-
-
Constructor Summary
Constructors Constructor Description EngineFactoryImpl()
FOR INTERNAL USE ONLY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Engine
createEngine(java.util.Properties props)
Create a new Engine and initialize it with the properties.ReportCacheKey
getKey(java.util.Properties props)
Create a unique key for the Engine that is returned by createEngine().
-
-
-
Method Detail
-
createEngine
public Engine createEngine(java.util.Properties props) throws ReportException
Create a new Engine and initialize it with the properties.- Specified by:
createEngine
in interfaceEngineFactory
- Parameters:
props
- contains parameters for the engine. e.g. "export_fmt" = Engine.EXPORT_PDF. The properties will not modified.- Returns:
- the created Engine
- Throws:
ReportException
- will be thrown when setting parameters for the Engine failed- Since:
- 6.0
- See Also:
EngineFactory.createEngine(java.util.Properties)
-
getKey
public ReportCacheKey getKey(java.util.Properties props) throws ReportException
Create a unique key for the Engine that is returned by createEngine(). The key contains all key/value pairs from the Properties object without any internal controlling properties like "page".- Specified by:
getKey
in interfaceEngineFactory
- Parameters:
props
- contains the parameters for the engine and the key. The properties will not modified.- Returns:
- the created ReportCacheKey
- Throws:
ReportException
- if there is no parameter report.- Since:
- 6.0
-
-