Interface PlatformInstantiation
public interface PlatformInstantiation
Command line interfaces to platform instantiation.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ClassLoader loader, String resourcesDir, String tracingLevel, String mvnArgs, String... args) Executes the platform instantiation through an on class loader within this JVM.voidexecuteAsProcess(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 fileresourcesDir- the optional resources directory for the instantiationtracingLevel- the tracing level for the instantiationmvnArgs- 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 fileresourcesDir- the optional resources directory for the instantiationtracingLevel- the tracing level for the instantiationmvnArgs- optional maven arguments for the instantiation (may be null for none)args- the instantiation arguments- Throws:
ExecutionException
-