Interface PlatformInstantiation


public interface PlatformInstantiation
Command line interfaces to platform instantiation.
Author:
Holger Eichelberger, SSE
  • 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 (may be null for none)
      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 (may be null for none)
      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
    • setProperty

      PlatformInstantiation setProperty(String key, String value)
      Sets a JVM system property for execution.
      Parameters:
      key - the key
      value - the value
      Returns:
      this for chaining
    • setAllTypes

      PlatformInstantiation setAllTypes(boolean allTypes)
      Configures whether all types or just referenced types by apps shall be instantiated.
      Parameters:
      allTypes - all types (@code{true}) or just referenced types (@code{false}, the default)
      Returns:
      this for chaining
    • setAllServices

      PlatformInstantiation setAllServices(boolean allServices)
      Configures whether all services or just referenced services by apps shall be instantiated.
      Parameters:
      allTypes - all services (@code{true}) or just referenced services (@code{false}, the default)
      Returns:
      this for chaining
    • setIncremental

      PlatformInstantiation setIncremental(boolean incremental)
      Configures whether the instantiation shall run in incremental mode.
      Parameters:
      incremental - incremental mode or wipe out target folder/generate anew
      Returns:
      this for chaining
    • takeOverProperties

      void takeOverProperties()
      Takes over properties from this process.