Interface CodestartFileStrategyHandler
-
- All Known Subinterfaces:
DefaultCodestartFileStrategyHandler
public interface CodestartFileStrategyHandler
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,CodestartFileStrategyHandler>BY_NAMEstatic DefaultCodestartFileStrategyHandlerDEFAULT_STRATEGYstatic StringSKIP_FILE_IDENTIFIER
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcheckNotEmptyCodestartFiles(List<TargetFile> codestartFiles)default voidcheckTargetDoesNotExist(Path targetPath)default voidcreateDirectories(Path targetPath)Stringname()voidprocess(Path targetDirectory, String relativePath, List<TargetFile> codestartFiles, Map<String,Object> data)default voidwriteFile(Path targetPath, String content)
-
-
-
Field Detail
-
DEFAULT_STRATEGY
static final DefaultCodestartFileStrategyHandler DEFAULT_STRATEGY
-
SKIP_FILE_IDENTIFIER
static final String SKIP_FILE_IDENTIFIER
- See Also:
- Constant Field Values
-
BY_NAME
static final Map<String,CodestartFileStrategyHandler> BY_NAME
-
-
Method Detail
-
name
String name()
-
process
void process(Path targetDirectory, String relativePath, List<TargetFile> codestartFiles, Map<String,Object> data) throws IOException
- Throws:
IOException
-
checkNotEmptyCodestartFiles
default void checkNotEmptyCodestartFiles(List<TargetFile> codestartFiles)
-
checkTargetDoesNotExist
default void checkTargetDoesNotExist(Path targetPath)
-
createDirectories
default void createDirectories(Path targetPath) throws IOException
- Throws:
IOException
-
writeFile
default void writeFile(Path targetPath, String content) throws IOException
- Throws:
IOException
-
-