org.apache.avalon.repository.provider
Interface InitialContext

All Known Implementing Classes:
DefaultInitialContext

public interface InitialContext

The initial context established by an initial repository factory.

Version:
$Revision: 1.1.1.7 $ $Date: 2004/02/13 05:42:35 $
Author:
Stephen McConnell

Field Summary
static String CACHE_KEY
          The property key used when resolving the default cache directory.
static String HOSTS_KEY
          The property key used when evaluating the default remote hosts.
static String LINE
           
 
Method Summary
 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.
 Manifest install(URL url)
          Install a block archive into the repository.
 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.
 

Field Detail

CACHE_KEY

public static final String CACHE_KEY
The property key used when resolving the default cache directory.

See Also:
Constant Field Values

HOSTS_KEY

public static final String HOSTS_KEY
The property key used when evaluating the default remote hosts. The value assigned to this property is a comma seperated list of urls.

See Also:
Constant Field Values

LINE

public static final String LINE
See Also:
Constant Field Values
Method Detail

getInitialWorkingDirectory

public File getInitialWorkingDirectory()
Return the base working directory.

Returns:
the base directory

getInitialCacheDirectory

public File getInitialCacheDirectory()
Return cache root directory.

Returns:
the cache directory

getInitialHosts

public String[] getInitialHosts()
Return the initial set of host names.

Returns:
the host names sequence

getInitialFactory

public Factory getInitialFactory()
Return the initial repository factory.

Returns:
the initial repository factory

newBuilder

public Builder newBuilder(Artifact artifact)
                   throws Exception
Create a factory builder using a supplied artifact.

Parameters:
artifact - the factory artifact
Returns:
the factory builder
Throws:
Exception - if a builder creation error occurs

newBuilder

public Builder newBuilder(ClassLoader classloader,
                          Artifact artifact)
                   throws Exception
Create a factory builder using a supplied artifact.

Parameters:
classloader - the parent classloader
artifact - the factory artifact
Returns:
the factory
Throws:
Exception - if a factory creation error occurs

install

public Manifest install(URL url)
                 throws RepositoryException
Install a block archive into the repository.

Parameters:
url - the block archive url
Returns:
the block manifest
Throws:
RepositoryException


Copyright © Apache Software Foundation. All Rights Reserved.