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.setInTest(boolean test) Configures whether the instantiation shall run in test mode.setLogPath(String path) Sets the log path for transport-based distributed logging.default PlatformInstantiationsetProperty(String key, boolean value) Sets a JVM Boolean system property for execution.setProperty(String key, String value) Sets a JVM system property for execution.setUnpackResources(boolean unpack) Configures whether the instantiation shall enforce unpacking of services resources in the build process.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
-
setProperty
Sets a JVM Boolean system property for execution.- Parameters:
key- the keyvalue- the value- Returns:
- this for chaining
- See Also:
-
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:
allServices- 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
-
setInTest
Configures whether the instantiation shall run in test mode.- Parameters:
test- test mode or production mode- Returns:
- this for chaining
-
setUnpackResources
Configures whether the instantiation shall enforce unpacking of services resources in the build process.- Parameters:
unpack- whether unpacking shall happen- Returns:
- this for chaining
-
setLogPath
Sets the log path for transport-based distributed logging.- Parameters:
path- the path, may be null for none- Returns:
- this for chaining
-
takeOverProperties
void takeOverProperties()Takes over properties from this process.
-