Interface ParameterAttributeNamesExtractor

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ParameterAttributeNamesExtractor
    Extractor for the attribute names for the parameters of a traced method.
    • Method Detail

      • extract

        @Nullable
        String[] extract​(Method method,
                         Parameter[] parameters)
        Returns an array of the names of the attributes for the parameters of the traced method. The array must be the same length as the array of the method parameters. An element may be null to indicate that the parameter should not be bound to an attribute.
        Parameters:
        method - the traced method
        parameters - the method parameters
        Returns:
        an array of the attribute names