|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwiki.extension.internal.DefaultExtensionManager
@Component @Singleton public class DefaultExtensionManager
Default implementation of ExtensionManager
.
Constructor Summary | |
---|---|
DefaultExtensionManager()
|
Method Summary | |
---|---|
ExtensionRepository |
getRepository(String repositoryId)
Return a repository based on its id. |
void |
initialize()
Method called by the Component Manager when the component is created for the first time (i.e. |
Extension |
resolveExtension(ExtensionDependency extensionDependency)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultExtensionManager()
Method Detail |
---|
public void initialize() throws InitializationException
Initializable
initialize
in interface Initializable
InitializationException
- if an error happens during a component's initializationpublic Extension resolveExtension(ExtensionId extensionId) throws ResolveException
ExtensionManager
The search is done in the following order:
resolveExtension
in interface ExtensionManager
extensionId
- the extension identifier
ResolveException
- error when trying to resolve extensionpublic Extension resolveExtension(ExtensionDependency extensionDependency) throws ResolveException
ExtensionManager
The search is done in the following order:
resolveExtension
in interface ExtensionManager
extensionDependency
- the extension as dependency
ResolveException
- error when trying to resolve extensionpublic ExtensionRepository getRepository(String repositoryId)
ExtensionManager
This method also return local, installed and core repositories.
getRepository
in interface ExtensionManager
repositoryId
- the id of the repository
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |