Kieker 1.12

kieker.common.record.factory
Class CachedRecordFactoryCatalog

java.lang.Object
  extended by kieker.common.record.factory.CachedRecordFactoryCatalog

public final class CachedRecordFactoryCatalog
extends java.lang.Object

Since:
1.11
Author:
Christian Wulf

Constructor Summary
CachedRecordFactoryCatalog()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedRecordFactoryCatalog

public CachedRecordFactoryCatalog()
Method Detail

getInstance

public static CachedRecordFactoryCatalog getInstance()
Returns the only instance of this class.


get

public IRecordFactory<? extends IMonitoringRecord> get(java.lang.String recordClassName)
Hint: This method uses convention over configuration when searching for a record factory class.

Parameters:
recordClassName -
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 new RecordFactoryWrapper is created and stored for the given recordClassName.

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net