@Role public interface ExtensionManager
| Modifier and Type | Method and Description |
|---|---|
ExtensionRepository |
getRepository(String repositoryId)
Return a repository based on its id.
|
Extension |
resolveExtension(ExtensionDependency extensionDependency)
Deprecated.
|
Extension |
resolveExtension(ExtensionDependency extensionDependency,
String namespace)
Search the provided extension as a dependency of another extension among all repositories including core and
local repositories.
|
Extension |
resolveExtension(ExtensionId extensionId)
Search the provided extension among all repositories including core and local repositories.
|
Extension resolveExtension(ExtensionId extensionId) throws ResolveException
The search is done in the following order:
extensionId - the extension identifierResolveException - error when trying to resolve extension@Deprecated Extension resolveExtension(ExtensionDependency extensionDependency) throws ResolveException
The search is done in the following order:
extensionDependency - the extension as dependencyResolveException - error when trying to resolve extensionresolveExtension(ExtensionDependency, String) insteadExtension resolveExtension(ExtensionDependency extensionDependency, String namespace) throws ResolveException
The search is done in the following order:
extensionDependency - the extension as dependencynamespace - the namespace where to search for the dependencyResolveException - error when trying to resolve extensionExtensionRepository getRepository(String repositoryId)
This method also return local, installed and core repositories.
repositoryId - the id of the repositoryCopyright © 2004–2014 XWiki. All rights reserved.