Class IsolatedClassLoaderExecutor
java.lang.Object
org.gcube.informationsystem.documentation.IsolatedClassLoaderExecutor
Executes model documentation generation inside an isolated classloader built from
the compile classpath of the target Maven project.
- Author:
- Luca Frosini (ISTI - CNR)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IsolatedClassLoaderExecutor
public IsolatedClassLoaderExecutor()
-
-
Method Details
-
execute
public void execute(List<String> classpathElements, String registrationProviderClassName, File outputDirectory, String format, boolean failOnDanglingTypeReference) throws Exception Runs documentation generation using the provided classpath elements.- Parameters:
classpathElements- list of file paths (JARs and directories) constituting the project's compile classpathregistrationProviderClassName- fully-qualified class name of theRegistrationProviderto use, ornullto discover all available providers viaServiceLoaderoutputDirectory- the directory where documentation files should be generatedformat- the documentation format to generate (e.g."md"or"html")failOnDanglingTypeReference- whether a description linking a name that is not a known type fails the generation- Throws:
Exception- if classloading or documentation generation fails
-