Interface PlatformInstantiation


public interface PlatformInstantiation
Command line interfaces to platform instantiation.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(ClassLoader loader, String resourcesDir, String tracingLevel, String mvnArgs, String... args)
    Executes the platform instantiation through an on class loader within this JVM.
    void
    executeAsProcess(ClassLoader loader, String resourcesDir, String tracingLevel, String mvnArgs, String... args)
    Executes the platform instantiation directly within an own JVM.
  • Method Details

    • execute

      void execute(ClassLoader loader, String resourcesDir, String tracingLevel, String mvnArgs, String... args) throws ExecutionException
      Executes the platform instantiation through an on class loader within this JVM. This may fail if there are significant library overlaps that can also not resolved by creating a dedicated classloader.
      Parameters:
      loader - the class loader to load the classpath resource file
      resourcesDir - the optional resources directory for the instantiation
      tracingLevel - the tracing level for the instantiation
      mvnArgs - optional maven arguments for the instantiation (may be null for none)
      args - the instantiation arguments
      Throws:
      ExecutionException
    • executeAsProcess

      void executeAsProcess(ClassLoader loader, String resourcesDir, String tracingLevel, String mvnArgs, String... args) throws ExecutionException
      Executes the platform instantiation directly within an own JVM. This may be required if there are significant library overlaps that can also not resolved by creating a dedicated classloader.
      Parameters:
      loader - the class loader to load the classpath resource file
      resourcesDir - the optional resources directory for the instantiation
      tracingLevel - the tracing level for the instantiation
      mvnArgs - optional maven arguments for the instantiation (may be null for none)
      args - the instantiation arguments
      Throws:
      ExecutionException