Class ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForJava9CapableVm

    • Constructor Detail

      • ForJava9CapableVm

        protected ForJava9CapableVm​(Method current,
                                    Method pid)
        Creates a new Java 9 capable dispatcher for reading the current process's id.
        Parameters:
        current - The java.lang.ProcessHandle#current() method.
        pid - The java.lang.ProcessHandle#pid() method.
    • Method Detail

      • make

        public static ByteBuddyAgent.ProcessProvider make()
        Attempts to create a dispatcher for a Java 9 VM and falls back to a legacy dispatcher if this is not possible.
        Returns:
        A dispatcher for the current VM.