i-net Clear Reports

com.inet.report.cache
Class EngineFactoryImpl

java.lang.Object
  extended by 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

Method Summary
 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 interface EngineFactory
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
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 interface EngineFactory
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.

i-net Clear Reports

Copyright © 1999-2011 by i-net software GmbH