org.springframework.batch.admin.integration
Class FileToResourceAdapter
java.lang.Object
org.springframework.batch.admin.integration.FileToResourceAdapter
@MessageEndpoint
public class FileToResourceAdapter
- extends Object
Adapt a File to a Spring Resource so it can be consumed by a
generic consumer.
- Author:
- Dave Syer
|
Method Summary |
org.springframework.core.io.Resource |
adapt(File file)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileToResourceAdapter
public FileToResourceAdapter()
adapt
@ServiceActivator
public org.springframework.core.io.Resource adapt(File file)
throws org.springframework.batch.core.configuration.DuplicateJobException
- Throws:
org.springframework.batch.core.configuration.DuplicateJobException
Copyright © 2013. All Rights Reserved.