Class ByteArrayClassLoader.SynchronizationStrategy.ForJava8CapableVm

java.lang.Object
net.bytebuddy.dynamic.loading.ByteArrayClassLoader.SynchronizationStrategy.ForJava8CapableVm
All Implemented Interfaces:
ByteArrayClassLoader.SynchronizationStrategy, ByteArrayClassLoader.SynchronizationStrategy.Initializable
Enclosing interface:
ByteArrayClassLoader.SynchronizationStrategy

@Enhance public static class ByteArrayClassLoader.SynchronizationStrategy.ForJava8CapableVm extends Object implements ByteArrayClassLoader.SynchronizationStrategy, ByteArrayClassLoader.SynchronizationStrategy.Initializable
A synchronization engine for a VM that is aware of parallel-capable class loaders using method handles to respect module boundaries.
  • Field Details

    • methodHandle

      private final Object methodHandle
      The java.lang.invoke.MethodHandle to use.
    • bindTo

      private final Method bindTo
      The java.lang.invoke.MethodHandle#bindTo(Object) method.
    • invokeWithArguments

      private final Method invokeWithArguments
      The java.lang.invoke.MethodHandle#invokeWithArguments(Object[]) method.
  • Constructor Details

    • ForJava8CapableVm

      protected ForJava8CapableVm(Object methodHandle, Method bindTo, Method invokeWithArguments)
      Creates a new synchronization strategy.
      Parameters:
      methodHandle - The java.lang.invoke.MethodHandle to use.
      bindTo - The java.lang.invoke.MethodHandle#bindTo(Object) method.
      invokeWithArguments - The java.lang.invoke.MethodHandle#invokeWithArguments(Object[]) method.
  • Method Details