@Component(value="cuba_TriggerFilesProcessor")
public class TriggerFilesProcessor
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected java.util.regex.Pattern |
fileNamePattern |
static java.lang.String |
NAME |
protected java.lang.String |
tempDir |
Constructor and Description |
---|
TriggerFilesProcessor() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.nio.file.Path> |
findTriggerFiles() |
void |
init() |
void |
process() |
protected void |
processFile(java.lang.String fileName) |
protected boolean |
processingDisabled() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setConfiguration(Configuration configuration) |
public static final java.lang.String NAME
protected java.lang.String tempDir
protected java.util.regex.Pattern fileNamePattern
protected org.springframework.context.ApplicationContext applicationContext
@Inject public void setConfiguration(Configuration configuration)
@PostConstruct public void init()
public void process()
protected void processFile(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
protected boolean processingDisabled()
@Nonnull protected java.util.List<java.nio.file.Path> findTriggerFiles()
public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException