public abstract class AbstractFilePayloadTransformer<T> extends Object implements Transformer, BeanFactoryAware
Constructor and Description |
---|
AbstractFilePayloadTransformer() |
Modifier and Type | Method and Description |
---|---|
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setDeleteFiles(boolean deleteFiles)
Specify whether to delete the File after transformation.
|
Message<?> |
transform(Message<?> message) |
protected abstract T |
transformFile(File file)
Subclasses must implement this method to transform the File contents.
|
public void setDeleteFiles(boolean deleteFiles)
deleteFiles
- true to delete the file.public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public final Message<?> transform(Message<?> message)
transform
in interface GenericTransformer<Message<?>,Message<?>>
transform
in interface Transformer