@Role public interface CoreExtensionRepository extends ExtensionRepository, Searchable
| Modifier and Type | Method and Description |
|---|---|
int |
countExtensions() |
boolean |
exists(String feature) |
CoreExtension |
getCoreExtension(String feature) |
Collection<CoreExtension> |
getCoreExtensions() |
CoreExtension |
getEnvironmentExtension()
Return the extension corresponding to the current environment if any.
|
CoreExtension |
resolve(ExtensionDependency extensionDependency)
Return extension descriptor from the repository.
|
CoreExtension |
resolve(ExtensionId extensionId)
Return extension descriptor from the repository.
|
exists, getDescriptor, getId, resolveVersionssearchint countExtensions()
Collection<CoreExtension> getCoreExtensions()
CoreExtension getEnvironmentExtension()
CoreExtension getCoreExtension(String feature)
feature - the feature provided by the extension including its identifier (version is not needed since there
can be only one version of a core extension)boolean exists(String feature)
feature - the feature provided by the extension including its identifier (version is not needed since there
can be only one version of a core extension)CoreExtension resolve(ExtensionDependency extensionDependency) throws ResolveException
ExtensionRepositoryResolveException is
thrown.resolve in interface ExtensionRepositoryextensionDependency - the target extension as a dependencyResolveException - failed to find extension in the repositoryCoreExtension resolve(ExtensionId extensionId) throws ResolveException
ExtensionRepositoryResolveException is
thrown.resolve in interface ExtensionRepositoryextensionId - the extension identifierResolveException - failed to find extension in the repositoryCopyright © 2004–2015 XWiki. All rights reserved.