Class VirtualMachineFactory

java.lang.Object
org.geysermc.conduit.VirtualMachineFactory

public class VirtualMachineFactory extends Object
Creates a VirtualMachine over a ConduitContext.
  • Method Details

    • await

      public VirtualMachine await()
      Returns the machine, ready to have handlers registered.
      Returns:
      the machine
    • awaitUninterruptibly

      public CompletableFuture<VirtualMachine> awaitUninterruptibly()
      Returns the machine as an already completed future.
      Returns:
      a future completing with the machine
    • create

      public static VirtualMachineFactory create(ConduitContext context)
      Creates a factory for a machine that scans the given context.
      Parameters:
      context - the jars to scan
      Returns:
      a factory for a machine over the context