public interface CodestartFileStrategyHandler
| Modifier and Type | Field and Description |
|---|---|
static Map<String,CodestartFileStrategyHandler> |
BY_NAME |
static DefaultCodestartFileStrategyHandler |
DEFAULT_STRATEGY |
| Modifier and Type | Method and Description |
|---|---|
default void |
checkNotEmptyCodestartFiles(List<TargetFile> codestartFiles) |
default void |
checkTargetDoesNotExist(Path targetPath) |
default void |
createDirectories(Path targetPath) |
String |
name() |
void |
process(Path targetDirectory,
String relativePath,
List<TargetFile> codestartFiles,
Map<String,Object> data) |
default void |
writeFile(Path targetPath,
String content) |
static final DefaultCodestartFileStrategyHandler DEFAULT_STRATEGY
static final Map<String,CodestartFileStrategyHandler> BY_NAME
String name()
void process(Path targetDirectory, String relativePath, List<TargetFile> codestartFiles, Map<String,Object> data) throws IOException
IOExceptiondefault void checkNotEmptyCodestartFiles(List<TargetFile> codestartFiles)
default void checkTargetDoesNotExist(Path targetPath)
default void createDirectories(Path targetPath) throws IOException
IOExceptiondefault void writeFile(Path targetPath, String content) throws IOException
IOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.