Package com.aquima.interactions.trace
Class TraceEngineFactory
java.lang.Object
com.aquima.interactions.trace.TraceEngineFactory
- All Implemented Interfaces:
ITraceEngineFactory
Factory class that may be used to create an instance of the Trace Engine.
- Since:
- 9.2
- Author:
- A.Pragt
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of the trace engine.create
(ITraceDao dao, ITimelineCreator timelineCreator) Creates an instance of the trace engine.static ITraceEngineFactory
Get an instance of ITraceEngineFactory.
-
Field Details
-
PROPERTY
property that is used to search for a factory implementation.- See Also:
-
-
Constructor Details
-
TraceEngineFactory
public TraceEngineFactory()
-
-
Method Details
-
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
Description copied from interface:ITraceEngineFactory
Creates an instance of the trace engine.- Specified by:
create
in interfaceITraceEngineFactory
- Parameters:
dao
- The dao used by the trace engine.- Returns:
- A Trace Engine instance.
-
create
Description copied from interface:ITraceEngineFactory
Creates an instance of the trace engine.- Specified by:
create
in interfaceITraceEngineFactory
- Parameters:
dao
- The dao used by the trace engine.timelineCreator
- The dao used to insert timeline entries.- Returns:
- A Trace Engine instance.
-