Class DefaultTimeTrackerFactory

java.lang.Object
com.aquima.interactions.framework.tracking.DefaultTimeTrackerFactory
All Implemented Interfaces:
ITimeTrackerFactory

public class DefaultTimeTrackerFactory extends Object implements ITimeTrackerFactory
Default time tracker factory that returns a TimeTracker or a NullTracker instance for each request.
Since:
6.2
Author:
O. Kerpershoek, F. van der Meer
See Also:
  • Constructor Details

    • DefaultTimeTrackerFactory

      public DefaultTimeTrackerFactory(boolean returnNullTracker)
      Construct a time tracker factory with a boolean indicating if a NullTracker or TimeTracker instance should be created.
      Parameters:
      returnNullTracker - When true, this factory creates a NullTracker, otherwise it creates an instance of TimeTracker.
  • Method Details

    • createTimeTracker

      public ITimeTracker createTimeTracker(String name)
      Description copied from interface: ITimeTrackerFactory
      This method should create a time tracker object for with the specified name.
      Specified by:
      createTimeTracker in interface ITimeTrackerFactory
      Parameters:
      name - The name of the time tracker that should be created.
      Returns:
      Time tracker implementation for the specified name.