Class LinkedTimeTrackerFactory

java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedTimeTrackerFactory
All Implemented Interfaces:
ITimeTrackerFactory

public final class LinkedTimeTrackerFactory extends Object implements ITimeTrackerFactory
Time tracker factory that combines two factories.
Since:
6.0
Author:
O. Kerpershoek
  • Method Details

    • createFor

      public static ITimeTrackerFactory createFor(ITimeTrackerFactory factory, ITimeTrackerFactory defaultFactory)
      This method returns a time-tracker factory implementation that combines both the time-tracker factories that are passed to this method.
      Parameters:
      factory - The time-tracker factory that should be used first (optional).
      defaultFactory - The time-tracker factory that should be used when the first did yield a result (mandatory).
      Returns:
      a time-tracker factory implementation that combines both the time-tracker factories that are passed to this method.
    • 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.