|
|||||||||||
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 |
BLOCK_GROUP_KEY
Group identifier manifest key. |
Fields inherited from interface org.apache.avalon.repository.provider.InitialContext |
CACHE_KEY, FACTORY_ARTIFACTS_KEY, HOSTS_KEY, IMPLEMENTATION_KEY, LINE, ONLINE_KEY, PROXY_HOST_KEY, PROXY_PASSWORD_KEY, PROXY_PORT_KEY, PROXY_USERNAME_KEY |
Method Summary | |
String |
getApplicationKey()
Return the application key. |
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. |
boolean |
getOnlineMode()
Get the online mode of the repository. |
Repository |
getRepository()
Return the inital repository. |
Manifest |
install(URL url)
Install a block archive into the repository cache. |
Builder |
newBuilder(Artifact artifact)
Create a factory builder using a supplied artifact. |
Builder |
newBuilder(ClassLoader classloader,
Artifact artifact)
Create a factory builder using a supplied artifact. |
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 BLOCK_GROUP_KEY
Method Detail |
public Repository getRepository()
getRepository
in interface InitialContext
public boolean getOnlineMode()
getOnlineMode
in interface InitialContext
public String getApplicationKey()
getApplicationKey
in interface InitialContext
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
public Builder newBuilder(Artifact artifact) throws Exception
newBuilder
in interface InitialContext
artifact
- the factory artifact
Exception
- if a builder creation error occurspublic Builder newBuilder(ClassLoader classloader, Artifact artifact) throws Exception
newBuilder
in interface InitialContext
classloader
- the parent classloaderartifact
- the factory artifact
Exception
- if a factory creation error occurspublic Manifest install(URL url) throws RepositoryException
install
in interface InitialContext
url
- the block archive url
RepositoryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |