public class ResourceProvider extends Object
ScaffoldResources for further
processing.| Constructor and Description |
|---|
ResourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
static List<ScaffoldResource> |
getEntityTemplates(String targetDir,
String entityName,
ProcessingStrategy strategy)
Provides a list of
ScaffoldResources representing Freemarker templates that are to be processed for every entity
during a scaffold generation run. |
static List<ScaffoldResource> |
getGlobalTemplates(String targetDir,
ProcessingStrategy strategy)
Provides a list of
ScaffoldResources representing Freemarker templates that are to be processed only once for a
scaffold generation run. |
static List<ScaffoldResource> |
getStatics(String targetDir,
ProcessingStrategy strategy)
Provides a list of
ScaffoldResources representing static files that are to be copied upon scaffolding setup. |
public static List<ScaffoldResource> getStatics(String targetDir, ProcessingStrategy strategy)
ScaffoldResources representing static files that are to be copied upon scaffolding setup.targetDir - The target directory that serves as the root directory of the destination for the generated resources to
be copied to.strategy - The ProcessingStrategy to use for processing the static file. Usually this involves a strategy to copy
files from a source to destination.ScaffoldResources representing static files that are to be copied upon scaffolding setup.public static List<ScaffoldResource> getGlobalTemplates(String targetDir, ProcessingStrategy strategy)
ScaffoldResources representing Freemarker templates that are to be processed only once for a
scaffold generation run.targetDir - The target directory that serves as the root directory of the destination for the generated resources to
be written to.strategy - The ProcessingStrategy to use for processing the static file. Usually this involves a strategy to process
the file as a Freemarker template before copying it from a source to destination.ScaffoldResources representing Freemarker templates that are to be processed only once for a
scaffold generation run.public static List<ScaffoldResource> getEntityTemplates(String targetDir, String entityName, ProcessingStrategy strategy)
ScaffoldResources representing Freemarker templates that are to be processed for every entity
during a scaffold generation run.targetDir - The target directory that serves as the root directory of the destination for the generated resources to
be written to.entityName - The name of the JPA entitystrategy - The ProcessingStrategy to use for processing the static file. Usually this involves a strategy to process
the file as a Freemarker template before copying it from a source to destination.ScaffoldResources representing Freemarker templates that are to be processed for every entity
during a scaffold generation run.Copyright © 2014 JBoss by Red Hat. All rights reserved.