Archive for June, 2012

payload adapters Iterator

Posted: 26 June 2012 in Uncategorized

The opendeploy payload adapters provided as an example have 1 method.

public Iterator getFileList(String area, String xmlString, String parameter, boolean isQuery, Map adapterMap)

This method returns an Iterator object but it doesn’t define the type of objects contained in the collection iterated on. The various comments in the examples provided do provide additional information in the javadoc: “@return Iterator a collection of java File objects.”

Well, if you trust this information, you may be tempted to create an ArrayList of java.io.File objects and return it’s iterator and you’d be getting nowhere useful with that.
The Iterator is of type java.lang.String and the string refers to the absolute path to the file being deployed.

Also, the payload adapter is only for forward deployments.