Class RecordFactoryResolver

java.lang.Object
kieker.common.record.factory.RecordFactoryResolver

public class RecordFactoryResolver
extends java.lang.Object
Since:
1.11
Author:
Christian Wulf
  • Constructor Summary

    Constructors 
    Constructor Description
    RecordFactoryResolver()
    Creates a new record factory resolver which finds available factory providers automatically using the service locator.
    RecordFactoryResolver​(java.lang.Iterable<IRecordFactoryProvider> factoryProviders)
    Creates a new record factory resolver with the given factory providers.
  • Method Summary

    Modifier and Type Method Description
    IRecordFactory<? extends IMonitoringRecord> get​(java.lang.String recordClassName)
    Obtains a record factory instance fo the given record class name.

    Methods inherited from class java.lang.Object

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

    • RecordFactoryResolver

      public RecordFactoryResolver()
      Creates a new record factory resolver which finds available factory providers automatically using the service locator.
    • RecordFactoryResolver

      public RecordFactoryResolver​(java.lang.Iterable<IRecordFactoryProvider> factoryProviders)
      Creates a new record factory resolver with the given factory providers.
      Parameters:
      factoryProviders - The factory providers to use
  • Method Details

    • get

      public IRecordFactory<? extends IMonitoringRecord> get​(java.lang.String recordClassName)
      Obtains a record factory instance fo the given record class name.
      Parameters:
      recordClassName - fully qualified class name of a record
      Returns:
      a new instance of the record factory belonging to the given recordClassName or null if such a record factory could not be found or instantiated