Package kieker.common.record.factory
Class CachedRecordFactoryCatalog
java.lang.Object
kieker.common.record.factory.CachedRecordFactoryCatalog
public final class CachedRecordFactoryCatalog
extends java.lang.Object
- Since:
- 1.11
- Author:
- Christian Wulf
-
Constructor Summary
Constructors Constructor Description CachedRecordFactoryCatalog()
Create anCachedRecordFactoryCatalog
. -
Method Summary
Modifier and Type Method Description IRecordFactory<? extends IMonitoringRecord>
get(java.lang.String recordClassName)
Hint: This method uses convention over configuration when searching for a record factory class.static CachedRecordFactoryCatalog
getInstance()
Returns 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 newRecordFactoryWrapper
is created and stored for the givenrecordClassName
.
-