Class EngineFactoryImpl

java.lang.Object
com.inet.report.cache.EngineFactoryImpl
All Implemented Interfaces:
EngineFactory

public class EngineFactoryImpl extends Object implements EngineFactory
This is the default implementation of the EngineFactory. You can extend it to create your own EngineFactory.
See Also:
  • Constructor Details

    • EngineFactoryImpl

      public EngineFactoryImpl()
      FOR INTERNAL USE ONLY
  • Method Details

    • createEngine

      public Engine createEngine(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
      Since:
      6.0
      See Also:
    • getKey

      public ReportCacheKey getKey(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.
      Since:
      6.0