Class DownloadBlocker

java.lang.Object
aQute.bnd.build.DownloadBlocker
All Implemented Interfaces:
RepositoryPlugin.DownloadListener

public class DownloadBlocker extends Object implements RepositoryPlugin.DownloadListener
This class is intended to be used by the users of a RepositoryPlugin. The RepositoryPlugin.get(String, aQute.bnd.version.Version, java.util.Map, aQute.bnd.service.RepositoryPlugin.DownloadListener...) method takes one or more Download Listeners. These are called back with the success or failure of a download. This class is a simple implementation of this model, just call getReason() and it blocks until success or failure is called.