org.apache.avalon.extension.manager
Interface ExtensionManager

All Known Implementing Classes:
DefaultExtensionManager, DelegatingExtensionManager, NoopExtensionManager

public interface ExtensionManager

Interface used to store a collection of "Optional Packages" (formerly known as "Standard Extensions"). It is assumed that each "Optional Package" is represented by a single file on the file system.

This repository is responsible for storing the local repository of packages. The method used to locate packages on local filesystem and install packages is not specified.

For more information about optional packages, see the document Optional Package Versioning in the documentation bundle for your Java2 Standard Edition package, in file guide/extensions/versioning.html

.

Version:
$Revision: 1.2 $ $Date: 2003/12/05 15:13:04 $
Author:
Peter Donald

Field Summary
static String ROLE
           
 
Method Summary
 OptionalPackage[] getOptionalPackages(Extension extension)
          Return all the OptionalPackages that satisfy specified Extension.
 

Field Detail

ROLE

public static final String ROLE
Method Detail

getOptionalPackages

public OptionalPackage[] getOptionalPackages(Extension extension)
Return all the OptionalPackages that satisfy specified Extension. The array must be sorted with the packages that "best" satisfy the Extension earlier in the array. Note that the definition of "best" is implementation dependent.

Parameters:
extension - Description of the extension that needs to be provided by optional packages
Returns:
an array of optional packages that satisfy extension and the extensions dependencies
See Also:
OptionalPackage, Extension


Copyright © Apache Software Foundation. All Rights Reserved.