Class LinkedTimeTrackerFactory
java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedTimeTrackerFactory
- All Implemented Interfaces:
ITimeTrackerFactory
Time tracker factory that combines two factories.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.createTimeTracker
(String name) This method should create a time tracker object for with the specified name.
-
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
Description copied from interface:ITimeTrackerFactory
This method should create a time tracker object for with the specified name.- Specified by:
createTimeTracker
in interfaceITimeTrackerFactory
- Parameters:
name
- The name of the time tracker that should be created.- Returns:
- Time tracker implementation for the specified name.
-