Class SimpleTemplateRepository

  • All Implemented Interfaces:
    TemplateRepository, org.springframework.beans.factory.InitializingBean

    public class SimpleTemplateRepository
    extends Object
    implements TemplateRepository, org.springframework.beans.factory.InitializingBean
    A simple implementation of a TemplateRepository that lists all the Job Templates that are stored as XML files in a given directory
    • Constructor Detail

      • SimpleTemplateRepository

        public SimpleTemplateRepository​(File baseDirectory)
    • Method Detail

      • getBaseDirectory

        public File getBaseDirectory()
        Returns:
        The directory where all available job templates are stored
      • setBaseDirectory

        public void setBaseDirectory​(File baseDirectory)
        Configure the directory where all available job templates are stored
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception