org.springframework.integration.adapter.file
Class AbstractFileMessageCreator<T>

java.lang.Object
  extended by org.springframework.integration.adapter.file.AbstractFileMessageCreator<T>
All Implemented Interfaces:
MessageCreator<java.io.File,T>
Direct Known Subclasses:
ByteArrayFileMessageCreator, FileMessageCreator, TextFileMessageCreator

public abstract class AbstractFileMessageCreator<T>
extends java.lang.Object
implements MessageCreator<java.io.File,T>

Base class providing common behavior for file-based message creators.

Author:
Mark Fisher, Marius Bogoevici

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
AbstractFileMessageCreator()
           
 
Method Summary
 Message<T> createMessage(java.io.File file)
           
protected abstract  T readMessagePayload(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.apache.commons.logging.Log logger
Constructor Detail

AbstractFileMessageCreator

public AbstractFileMessageCreator()
Method Detail

createMessage

public Message<T> createMessage(java.io.File file)
Specified by:
createMessage in interface MessageCreator<java.io.File,T>

readMessagePayload

protected abstract T readMessagePayload(java.io.File file)
                                 throws java.lang.Exception
Throws:
java.lang.Exception