Closed GoogleCodeExporter closed 9 years ago
Fixed:
A new LoadType was added to define supported data loading variations. Currently
supported are:
LoadType.MINIMAL, // Only class data
LoadType.MAXIMAL; // Same as minimal but with method and dependency data
Thus, a MinimalDataLoadingStrategy and MaximalDataLoadingStrategy were
implemented
that act according to the aforementioned description. The
MinimalDataLoadingStrategy
will ensure it always loads VersionMetricData with only its class data
populated. A
MaximalDataLoadingStrategy will ensure it always loads VersionMetricData with
all
its class, method and dependency data.
Other loading strategies could be added in future to cope with different/new
situations.
DataLoadingFactory
-------------------
The DataLoadingFactory uses the LoadType to return the appropriate
DataLoadingStrategy.
Usage Scenario:
The DataLoadingStrategy used to return VersionMetricData from a History can be
configured when constructing a history.
Map<Integer, String[]> versions = //...a mapping of all the files for this
version
set.
HistoryMetricData hmd = new HistoryMetricData("Groovy", versions,
LoadType.MAXIMAL);
VersionMetricData vmd = hmd.getVersion(3); // Returns RSN 3 fully popluated.
Original comment by jtha...@gmail.com
on 28 Aug 2007 at 7:51
Added the ability to manually set the data loading type to change the data
loading
behavioiur of a History once it has already been created.
Usage Scenario:
hmd.setLoadType(LoadType.MINIMAL); // All VersionmetricData loaded from now on
will
be minimally populated.
Original comment by jtha...@gmail.com
on 28 Aug 2007 at 8:11
Original issue reported on code.google.com by
jtha...@gmail.com
on 28 Aug 2007 at 5:02