org.apache.geronimo.system.plugin
Class PluginRepositoryDownloader

java.lang.Object
  extended by org.apache.geronimo.system.plugin.PluginRepositoryDownloader
All Implemented Interfaces:
PluginRepositoryList

public class PluginRepositoryDownloader
extends Object
implements PluginRepositoryList

An implementation of PluginRepositoryList that downloads plugins from an Apache web site.


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
PluginRepositoryDownloader(List<String> downloadRepositories, List<String> userRepositories, URL repositoryList, Kernel kernel, AbstractName name)
           
 
Method Summary
 void addUserRepository(URL repo)
          Adds a new repository that the user put in manually.
static GBeanInfo getGBeanInfo()
           
 URL[] getRepositories()
          Gets the union of centrally-listed repositories and user-added repositories.
 void refresh()
          Go download a fresh copy of the repository list.
 void setDownloadRepositories(List<String> downloadRepositories)
          The list of repositories that were downloaded from central.
 void setUserRepositories(List<String> userRepositories)
          Any repositories that the user added manually
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

PluginRepositoryDownloader

public PluginRepositoryDownloader(List<String> downloadRepositories,
                                  List<String> userRepositories,
                                  URL repositoryList,
                                  Kernel kernel,
                                  AbstractName name)
Method Detail

setDownloadRepositories

public void setDownloadRepositories(List<String> downloadRepositories)
The list of repositories that were downloaded from central.


setUserRepositories

public void setUserRepositories(List<String> userRepositories)
Any repositories that the user added manually


getRepositories

public URL[] getRepositories()
Gets the union of centrally-listed repositories and user-added repositories.

Specified by:
getRepositories in interface PluginRepositoryList

refresh

public void refresh()
Go download a fresh copy of the repository list.

Specified by:
refresh in interface PluginRepositoryList

addUserRepository

public void addUserRepository(URL repo)
Adds a new repository that the user put in manually.

Specified by:
addUserRepository in interface PluginRepositoryList

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.