Class TraceEngineFactory

java.lang.Object
com.aquima.interactions.trace.TraceEngineFactory
All Implemented Interfaces:
ITraceEngineFactory

public class TraceEngineFactory extends Object implements ITraceEngineFactory
Factory class that may be used to create an instance of the Trace Engine.
Since:
9.2
Author:
A.Pragt
  • Field Details

    • PROPERTY

      public static final String PROPERTY
      property that is used to search for a factory implementation.
      See Also:
  • Constructor Details

    • TraceEngineFactory

      public TraceEngineFactory()
  • Method Details

    • getInstance

      public static ITraceEngineFactory getInstance()
      Get an instance of ITraceEngineFactory. If there is an implementation registered via the ClassFactory (with key 'traceengine-factory'), an instance of this class is returned. Note: keep in mind that the instance returned is kept in a static member, so once this class is loaded always the same instance is returned.
      Returns:
      ITraceEngineFactory implementation
    • create

      public ITraceEngine create(ITraceDao dao)
      Description copied from interface: ITraceEngineFactory
      Creates an instance of the trace engine.
      Specified by:
      create in interface ITraceEngineFactory
      Parameters:
      dao - The dao used by the trace engine.
      Returns:
      A Trace Engine instance.
    • create

      public ITraceEngine create(ITraceDao dao, ITimelineCreator timelineCreator)
      Description copied from interface: ITraceEngineFactory
      Creates an instance of the trace engine.
      Specified by:
      create in interface ITraceEngineFactory
      Parameters:
      dao - The dao used by the trace engine.
      timelineCreator - The dao used to insert timeline entries.
      Returns:
      A Trace Engine instance.