@Component(value="core_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 CoreProperties |
coreProperties |
protected static java.util.regex.Pattern |
FILE_NAME_PATTERN |
Constructor and Description |
---|
TriggerFilesProcessor() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.nio.file.Path> |
findTriggerFiles() |
protected java.lang.Object |
getBean(java.lang.String beanClassName) |
void |
init() |
void |
process() |
protected void |
processFile(java.lang.String fileName) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
@Autowired protected CoreProperties coreProperties
protected org.springframework.context.ApplicationContext applicationContext
protected static final java.util.regex.Pattern FILE_NAME_PATTERN
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
@PostConstruct public void init()
public void process()
protected void processFile(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
@Nullable protected java.lang.Object getBean(java.lang.String beanClassName)
protected java.util.List<java.nio.file.Path> findTriggerFiles()