@Retention(value=RUNTIME) @Target(value=TYPE) @Public public @interface InstantiateViaFactory
MetricReporters
that 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 InterceptInstantiationViaReflection
instead.
Modifier and Type | Required Element and Description |
---|---|
String |
factoryClassName |
public abstract String factoryClassName
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.