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()
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getInstance

      public static CachedRecordFactoryCatalog getInstance()
      Returns the only instance of this class.
      Returns:
      returns an factory catalog instance.
    • 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 - 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 new RecordFactoryWrapper is created and stored for the given recordClassName.