Class AgentBuilder.Default.NativeMethodStrategy.ForPrefix

    • Field Detail

      • prefix

        private final java.lang.String prefix
        The method name prefix.
    • Constructor Detail

      • ForPrefix

        protected ForPrefix​(java.lang.String prefix)
        Creates a new name prefixing native method strategy.
        Parameters:
        prefix - The method name prefix.
    • Method Detail

      • of

        protected static AgentBuilder.Default.NativeMethodStrategy of​(java.lang.String prefix)
        Creates a new native method strategy for prefixing method names.
        Parameters:
        prefix - The method name prefix.
        Returns:
        An appropriate native method strategy.
      • apply

        public void apply​(java.lang.instrument.Instrumentation instrumentation,
                          java.lang.instrument.ClassFileTransformer classFileTransformer)
        Applies this native method strategy.
        Specified by:
        apply in interface AgentBuilder.Default.NativeMethodStrategy
        Parameters:
        instrumentation - The instrumentation to apply this strategy upon.
        classFileTransformer - The class file transformer being registered.