|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.repository.main.AbstractBuilder
org.apache.avalon.repository.main.DefaultInitialContext
Sets up the environment to create repositories by downloading the required jars, preparing a ClassLoader and delegating calls to repository factory methods using the newly configured ClassLoader.
Field Summary | |
static String |
AVALON_PROPERTIES
The name of the properties file to be searched for confiuration properties. |
Fields inherited from interface org.apache.avalon.repository.provider.InitialContext |
CACHE_KEY, HOSTS_KEY |
Constructor Summary | |
DefaultInitialContext()
Creates an initial repository context. |
|
DefaultInitialContext(Artifact artifact,
File cache,
String[] hosts)
Creates an initial repository context. |
|
DefaultInitialContext(File cache)
Creates an initial repository context. |
|
DefaultInitialContext(File base,
ClassLoader loader,
Artifact artifact,
File cache,
String[] hosts)
Creates an initial repository context. |
|
DefaultInitialContext(File cache,
String[] hosts)
Creates an initial repository context. |
|
DefaultInitialContext(String[] hosts)
Creates an initial repository context. |
Method Summary | |
static File |
getAvalonHome()
Return the Avalon system common directory. |
File |
getInitialCacheDirectory()
Return cache root directory. |
Factory |
getInitialFactory()
Return the initial repository factory. |
String[] |
getInitialHosts()
Return the initial set of host names. |
File |
getInitialWorkingDirectory()
Return the base working directory. |
Methods inherited from class org.apache.avalon.repository.main.AbstractBuilder |
createDelegate, loadFactoryClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String AVALON_PROPERTIES
Constructor Detail |
public DefaultInitialContext() throws RepositoryException
RepositoryException
- if an error occurs during establishmentpublic DefaultInitialContext(File cache) throws RepositoryException
cache
- the cache directory
RepositoryException
- if an error occurs during establishmentpublic DefaultInitialContext(String[] hosts) throws RepositoryException
hosts
- a set of initial remote repository addresses
RepositoryException
- if an error occurs during establishmentpublic DefaultInitialContext(File cache, String[] hosts) throws RepositoryException
hosts
- a set of initial remote repository addressescache
- the cache directory
RepositoryException
- if an error occurs during establishmentpublic DefaultInitialContext(Artifact artifact, File cache, String[] hosts) throws RepositoryException
artifact
- an artifact referencing the default implementationcache
- the cache directoryhosts
- a set of initial remote repository addresses
RepositoryException
- if an error occurs during establishmentpublic DefaultInitialContext(File base, ClassLoader loader, Artifact artifact, File cache, String[] hosts) throws RepositoryException
artifact
- an artifact referencing the default implementationcache
- the cache directoryhosts
- a set of initial remote repository addresses
RepositoryException
- if an error occurs during establishmentMethod Detail |
public static File getAvalonHome()
public File getInitialWorkingDirectory()
getInitialWorkingDirectory
in interface InitialContext
public File getInitialCacheDirectory()
getInitialCacheDirectory
in interface InitialContext
public String[] getInitialHosts()
getInitialHosts
in interface InitialContext
public Factory getInitialFactory()
getInitialFactory
in interface InitialContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |