@Retention(value=RUNTIME) @Target(value=TYPE) @Public public @interface InstantiateViaFactory
MetricReportersthat support factories but want to maintain backwards-compatibility with existing reflection-based configurations.
When an annotated reporter is configured to be used via reflection the given factory will be used instead.
Attention: This annotation does not work if the reporter is loaded as a plugin. For these
cases, annotate the factory with
|Modifier and Type||Required Element and Description|
public abstract String factoryClassName
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.