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,
                                String themeName)
Calls
  
WebComponentModulesWriter.writeWebComponentsToDirectory(java.util.Set, java.io.File, boolean, java.lang.String)
 via reflection on the supplied writer. | 
public static Set<File> generateWebComponentsToDirectory(Class<?> writerClass, Set<Class<?>> exporterClasses, File outputDirectory, boolean compatibilityMode, String themeName)
WebComponentModulesWriter.writeWebComponentsToDirectory(java.util.Set, java.io.File, boolean, java.lang.String)
 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
            writeroutputDirectory - target directory for the generated web component module
            filescompatibilityMode - true to generated html modules, false to *
            generate JavaScript modulesthemeName - the theme defined using Theme or null if
            not definedNullPointerException - if writerClassSupplier,
             exporterClassSupplier, or outputDirectory is nullIllegalArgumentException - 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, java.lang.String)RuntimeException - if reflective method invocation failsWebComponentModulesWriter.writeWebComponentsToDirectory(java.util.Set, java.io.File,
      boolean, java.lang.String)Copyright © 2021. All rights reserved.