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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s