org.rhq.core.pc.plugin
Class SimplePluginFinder

java.lang.Object
  extended by org.rhq.core.pc.plugin.SimplePluginFinder
All Implemented Interfaces:
PluginFinder

public class SimplePluginFinder
extends Object
implements PluginFinder

Holds a collection of URLs retrieved elsewhere and returns them as the found plugin URLs.

Author:
Jason Dobies

Constructor Summary
SimplePluginFinder()
           
SimplePluginFinder(Collection<URL> startingUrls)
           
SimplePluginFinder(URL url)
           
 
Method Summary
 void addUrl(URL url)
           
 Collection<URL> findPlugins()
          Finds all plugins accessible to the plugin container and returns URLs that point to each plugin jar that is found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePluginFinder

public SimplePluginFinder()

SimplePluginFinder

public SimplePluginFinder(URL url)

SimplePluginFinder

public SimplePluginFinder(Collection<URL> startingUrls)
Method Detail

addUrl

public void addUrl(URL url)

findPlugins

public Collection<URL> findPlugins()
Description copied from interface: PluginFinder
Finds all plugins accessible to the plugin container and returns URLs that point to each plugin jar that is found.

Specified by:
findPlugins in interface PluginFinder
Returns:
collection of URLS pointing to each plugin to be loaded


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.