Package kieker.common.record.factory
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.
-
Constructor Details
-
RecordFactoryResolver
public RecordFactoryResolver()Creates a new record factory resolver which finds available factory providers automatically using the service locator. -
RecordFactoryResolver
Creates a new record factory resolver with the given factory providers.- Parameters:
factoryProviders
- The factory providers to use
-
-
Method Details
-
get
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
ornull
if such a record factory could not be found or instantiated
-