org.springframework.batch.admin.integration
Class FileToResourceAdapter

java.lang.Object
  extended by 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

Constructor Summary
FileToResourceAdapter()
           
 
Method Summary
 Resource adapt(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileToResourceAdapter

public FileToResourceAdapter()
Method Detail

adapt

@ServiceActivator
public Resource adapt(File file)
               throws DuplicateJobException
Throws:
DuplicateJobException


Copyright © 2011. All Rights Reserved.