Class MakeDirectoryTasklet

  • All Implemented Interfaces:
    org.springframework.batch.core.step.tasklet.Tasklet

    public class MakeDirectoryTasklet
    extends java.lang.Object
    implements org.springframework.batch.core.step.tasklet.Tasklet
    Makes a directory, including any necessary but nonexistent parent directories. Fails if a file already exists with specified name but it is not a directory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.batch.repeat.RepeatStatus execute​(org.springframework.batch.core.StepContribution contribution, org.springframework.batch.core.scope.context.ChunkContext chunkContext)  
      void setResources​(org.springframework.core.io.FileSystemResource[] resources)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MakeDirectoryTasklet

        public MakeDirectoryTasklet()
    • Method Detail

      • execute

        public org.springframework.batch.repeat.RepeatStatus execute​(org.springframework.batch.core.StepContribution contribution,
                                                                     org.springframework.batch.core.scope.context.ChunkContext chunkContext)
                                                              throws java.lang.Exception
        Specified by:
        execute in interface org.springframework.batch.core.step.tasklet.Tasklet
        Throws:
        java.lang.Exception
      • setResources

        public void setResources​(org.springframework.core.io.FileSystemResource[] resources)
        Parameters:
        resources - The directories to clean.