Class PlatformInstantiator
java.lang.Object
de.iip_ecosphere.platform.configuration.easyProducer.PlatformInstantiator
Instantiates the platform using EASy-Producer.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classTracing of language units and function executions but not deeper.static classConfigures the instantiation.static classAn instantiation configurer that does not clean the output folder. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidPerforms the platform instantiation.static voidPerforms the platform instantiation.static intMain functionality without returning exit code/output of help for re-use.static voidsetClassLoader(ClassLoader loader) Sets an explicit class loader for loading EASy-Producer.static voidSets the trace filter based on the system propertyKEY_PROPERTY_TRACING.
-
Field Details
-
KEY_PROPERTY_TRACING
- See Also:
-
KEY_PROPERTY_MVNARGS
- See Also:
-
KEY_PROPERTY_APPS
- See Also:
-
ARG_PROPS_START
- See Also:
-
ARG_PROPS_END
- See Also:
-
exitCode
private static int exitCode -
classLoader
-
-
Constructor Details
-
PlatformInstantiator
public PlatformInstantiator()
-
-
Method Details
-
setClassLoader
Sets an explicit class loader for loading EASy-Producer. By default, it's the class loader of theConfigurationLifecycleDescriptor.- Parameters:
loader- the class loader, ignored if null
-
instantiate
public static void instantiate(PlatformInstantiator.InstantiationConfigurer configurer) throws ExecutionException Performs the platform instantiation. Considers the class loader set before throughsetClassLoader(ClassLoader).- Parameters:
configurer- the configurer- Throws:
ExecutionException- in case that the instantiation fails and the configurer re-throws the exception
-
main
Performs the platform instantiation.- Parameters:
args- command line arguments- Throws:
ExecutionException- in case that the VIL instantiation fails, shall not occur here as handled by defaultPlatformInstantiator.InstantiationConfigurer
-
setTraceFilter
public static void setTraceFilter()Sets the trace filter based on the system propertyKEY_PROPERTY_TRACING. -
mainImpl
Main functionality without returning exit code/output of help for re-use. Could be with explicit parameters...- Parameters:
args- command line arguments- Returns:
- the exit code
- Throws:
ExecutionException- in case that the VIL instantiation fails, shall not occur here as handled by defaultPlatformInstantiator.InstantiationConfigurer
-