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 org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
PluginRepositoryDownloader(List downloadRepositories, List userRepositories, URL repositoryList, org.apache.geronimo.kernel.Kernel kernel, org.apache.geronimo.gbean.AbstractName name)
           
 
Method Summary
 void addUserRepository(URL repo)
          Adds a new repository that the user put in manually.
static org.apache.geronimo.gbean.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 downloadRepositories)
          The list of repositories that were downloaded from central.
 void setUserRepositories(List 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 org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

PluginRepositoryDownloader

public PluginRepositoryDownloader(List downloadRepositories,
                                  List userRepositories,
                                  URL repositoryList,
                                  org.apache.geronimo.kernel.Kernel kernel,
                                  org.apache.geronimo.gbean.AbstractName name)
Method Detail

setDownloadRepositories

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


setUserRepositories

public void setUserRepositories(List 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 org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2006 Apache Software Foundation. All Rights Reserved.