org.apache.avalon.repository.provider
Interface RepositoryCriteria

All Superinterfaces:
Map
All Known Implementing Classes:
DefaultRepositoryCriteria

public interface RepositoryCriteria
extends Map

Interface defining the operations available to manipulate repository factory criteria.

Version:
$Revision: 1.5 $
Author:
Avalon Development Team

Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
static String[] KEYS
          An array of property keys that are used to locate default values.
static String REPOSITORY_CACHE_DIR
          Repository cache directory parameter descriptor.
static String REPOSITORY_FACTORY_ARTIFACTS
          Repository proxy password parameter descriptor.
static String REPOSITORY_ONLINE_MODE
          Online mode.
static String REPOSITORY_REMOTE_HOSTS
          Repository proxy password parameter descriptor.
 
Method Summary
 void setCacheDirectory(File cache)
          The cache directory is the directory into which resources such as jar files are loaded by a repository.
 void setFactoryArtifacts(Artifact[] artifacts)
          Set the available factory artifacts.
 void setHosts(String[] hosts)
          Set the hosts to be used by a repository cache manager implementation and the initial context implementation when resolving dependent resources.
 void setOnlineMode(boolean policy)
          Set the online mode of the repository.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Field Detail

REPOSITORY_ONLINE_MODE

public static final String REPOSITORY_ONLINE_MODE
Online mode.

See Also:
Constant Field Values

REPOSITORY_CACHE_DIR

public static final String REPOSITORY_CACHE_DIR
Repository cache directory parameter descriptor.

See Also:
Constant Field Values

REPOSITORY_REMOTE_HOSTS

public static final String REPOSITORY_REMOTE_HOSTS
Repository proxy password parameter descriptor.

See Also:
Constant Field Values

REPOSITORY_FACTORY_ARTIFACTS

public static final String REPOSITORY_FACTORY_ARTIFACTS
Repository proxy password parameter descriptor.

See Also:
Constant Field Values

KEYS

public static final String[] KEYS
An array of property keys that are used to locate default values.

Method Detail

setOnlineMode

public void setOnlineMode(boolean policy)
Set the online mode of the repository. The default policy is to to enable online access to remote repositories. Setting the on-line mode to false disables remote repository access.

Parameters:
policy - the online connected policy

setCacheDirectory

public void setCacheDirectory(File cache)
The cache directory is the directory into which resources such as jar files are loaded by a repository.

Parameters:
cache - the repository cache directory

setHosts

public void setHosts(String[] hosts)
Set the hosts to be used by a repository cache manager implementation and the initial context implementation when resolving dependent resources. If is resource is not present in a local cache, remote hosts are checked in the order presented in the supplied list. A host may be a file url or a http url.

Parameters:
hosts - a sequence of remote host urls

setFactoryArtifacts

public void setFactoryArtifacts(Artifact[] artifacts)
Set the available factory artifacts. Each artifact represents a resolvable factory artifiact (artifact with an associate meta descriptor) than can be used as the basis for classloader creation and instance establishment.

Parameters:
artifacts - a sequence of artifact identifiers


Copyright © The Apache Software Foundation. All Rights Reserved.