Interface AgentBuilder.Default.NativeMethodStrategy

    • Method Detail

      • isEnabled

        boolean isEnabled​(java.lang.instrument.Instrumentation instrumentation)
        Determines if this strategy enables name prefixing for native methods.
        Parameters:
        instrumentation - The instrumentation used.
        Returns:
        true if this strategy indicates that a native method prefix should be used.
      • resolve

        MethodNameTransformer resolve()
        Resolves the method name transformer for this strategy.
        Returns:
        A method name transformer for this strategy.
      • getPrefix

        java.lang.String getPrefix()
        Returns the method prefix if the strategy is enabled. This method must only be called if this strategy enables prefixing.
        Returns:
        The method prefix.