Package kieker.common.record.factory
Class CachedRecordFactoryCatalog
java.lang.Object
kieker.common.record.factory.CachedRecordFactoryCatalog
- Since:
- 1.11
- Author:
- Christian Wulf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIRecordFactory<? extends IMonitoringRecord>Hint: This method uses convention over configuration when searching for a record factory class.static CachedRecordFactoryCatalogReturns the only instance of this class.
-
Constructor Details
-
CachedRecordFactoryCatalog
public CachedRecordFactoryCatalog()Create anCachedRecordFactoryCatalog.
-
-
Method Details
-
getInstance
Returns the only instance of this class.- Returns:
- returns an factory catalog instance.
-
get
Hint: This method uses convention over configuration when searching for a record factory class.- Parameters:
recordClassName- the record class name of the record class for which the factory is returned- Returns:
- a cached record factory instance of the record class indicated by
recordClassName.- If the cache does not contain a record factory instance, a new one is searched and instantiated via class path resolution.
- If there is no factory for the given
recordClassName, a newRecordFactoryWrapperis created and stored for the givenrecordClassName.
-