public static final class WebComponentModulesWriter.DirectoryWriter extends Object implements Serializable
WebComponentModulesWriter
class via
reflection. This is to simplify the usage of the WebComponentModulesWriter
when the writer and received
WebComponentExporter
classes are loaded
by a different class loader than the code using the writer.Constructor and Description |
---|
DirectoryWriter() |
Modifier and Type | Method and Description |
---|---|
static Set<File> |
generateWebComponentsToDirectory(Class<?> writerClass,
Set<Class<?>> exporterClasses,
File outputDirectory,
boolean compatibilityMode)
Calls
WebComponentModulesWriter.writeWebComponentsToDirectory(java.util.Set, java.io.File, boolean)
via reflection on the supplied writer . |
public static Set<File> generateWebComponentsToDirectory(Class<?> writerClass, Set<Class<?>> exporterClasses, File outputDirectory, boolean compatibilityMode)
WebComponentModulesWriter.writeWebComponentsToDirectory(java.util.Set, java.io.File, boolean)
via reflection on the supplied writer
. The writer
and
exporterClasses
must be loaded with the same class loader.writerClass
- WebComponentModulesWriter
classexporterClasses
- set of
WebComponentExporter
/WebComponentExporterFactory
classes, loaded with the same class loader as
writer
outputDirectory
- target directory for the generated web component module
filescompatibilityMode
- true
to generated html modules, false
to *
generate JavaScript modulesNullPointerException
- if writerClassSupplier
,
exporterClassSupplier
, or outputDirectory
is null
IllegalArgumentException
- if writer
is not
WebComponentModulesWriter
classIllegalArgumentException
- if writerClass
and exporterClasses
do not
share a class loaderIllegalStateException
- if the received writer
does not have method
WebComponentModulesWriter.writeWebComponentsToDirectory(java.util.Set, java.io.File, boolean)
RuntimeException
- if reflective method invocation failsWebComponentModulesWriter.writeWebComponentsToDirectory(java.util.Set, java.io.File,
boolean)
Copyright © 2021. All rights reserved.