Package com.inet.report.cache
Class EngineFactoryImpl
java.lang.Object
com.inet.report.cache.EngineFactoryImpl
- All Implemented Interfaces:
EngineFactory
This is the default implementation of the EngineFactory. You can extend it to create your own EngineFactory.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateEngine
(Properties props) Create a new Engine and initialize it with the properties.getKey
(Properties props) Create a unique key for the Engine that is returned by createEngine().
-
Constructor Details
-
EngineFactoryImpl
public EngineFactoryImpl()FOR INTERNAL USE ONLY
-
-
Method Details
-
createEngine
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:
-
getKey
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
-