Class DirectLauncher

java.lang.Object
org.jdrupes.builder.startup.AbstractLauncher
org.jdrupes.builder.startup.DirectLauncher
All Implemented Interfaces:
Launcher

public class DirectLauncher extends AbstractLauncher
An implementation of a Launcher that expects that the JDrupes Builder project already been compiled and its classes are available on the classpath.
  • Constructor Details

    • DirectLauncher

      public DirectLauncher(ClassLoader classloader, String[] args)
      Instantiates a new direct launcher. The classpath is scanned for classes that implement Project but do not implement Masked. One of these must also implement the RootProject interface. The latter is instantiated and registered as root project with all other classes found as direct sub projects.
      Parameters:
      classloader - the classloader
      args - the arguments
  • Method Details

    • provide

      public <T extends Resource> Stream<T> provide(ResourceRequest<T> request)
      Description copied from interface: Launcher
      Provide the requested resources from the root project.
      Type Parameters:
      T - the requested type
      Parameters:
      request - the request
      Returns:
      the stream
    • main

      public static void main(String[] args)
      This main can be used to start the user's JDrupes Builder project from an IDE for debugging purposes. It expects that the JDrupes Builder project has already been compiled (typically by the IDE) and is available on the classpath.
      Parameters:
      args - the arguments