public class SimpleTemplateRepository extends Object implements TemplateRepository, org.springframework.beans.factory.InitializingBean
TemplateRepository
that lists all the
Job Templates that are stored as XML files in a given directoryConstructor and Description |
---|
SimpleTemplateRepository() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
File |
getBaseDirectory() |
String |
getTemplate(String id)
Retrieve a single job template
|
List<String> |
listTemplates() |
void |
setBaseDirectory(File baseDirectory)
Configure the directory where all available job templates are stored
|
public List<String> listTemplates()
listTemplates
in interface TemplateRepository
public String getTemplate(String id) throws IOException
TemplateRepository
getTemplate
in interface TemplateRepository
id
- the ID of the job templateIOException
- if the job template could not be retrievedpublic File getBaseDirectory()
public void setBaseDirectory(File baseDirectory)
Copyright © 2018 levigo holding gmbh. All rights reserved.