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.setAllServices(boolean allServices) Configures whether all services or just referenced services by apps shall be instantiated.setAllTypes(boolean allTypes) Configures whether all types or just referenced types by apps shall be instantiated.setIncremental(boolean incremental) Configures whether the instantiation shall run in incremental mode.setProperty(String key, String value) Sets a JVM system property for execution.voidTakes over properties from this process.
-
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 instantiation (may be null for none)tracingLevel- 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 instantiation (may be null for none)tracingLevel- the tracing level for the instantiationmvnArgs- optional maven arguments for the instantiation (may be null for none)args- the instantiation arguments- Throws:
ExecutionException
-
setProperty
Sets a JVM system property for execution.- Parameters:
key- the keyvalue- the value- Returns:
- this for chaining
-
setAllTypes
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
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
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.
-