com.atlassian.jira.issue.util
Interface AggregateTimeTrackingCalculatorFactory

All Known Implementing Classes:
AggregateTimeTrackingCalculatorFactoryImpl

public interface AggregateTimeTrackingCalculatorFactory

A factory to return AggregateTimeTrackingCalculator instances based on the type of Issue in play.

Since:
v4.4

Method Summary
 AggregateTimeTrackingCalculator getCalculator(Issue issue)
          Create a new instance of time tracing calculator based on the Issue implementation.
 

Method Detail

getCalculator

AggregateTimeTrackingCalculator getCalculator(Issue issue)
Create a new instance of time tracing calculator based on the Issue implementation.

Creates and returns a new instance of DocumentIssueAggregateTimeTrackingCalculator if passed in a DocumentIssueImpl, else creates and returns a new instance of IssueImplAggregateTimeTrackingCalculator.

Parameters:
issue - Issue to compare
Returns:
DocumentIssueAggregateTimeTrackingCalculator if passed in a DocumentIssueImpl, else returns a IssueImplAggregateTimeTrackingCalculator


Copyright © 2002-2012 Atlassian. All Rights Reserved.