Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
DefaultComponentManagerManager | 41 | 14 | 0% | 6 | 0 | 1.0100% |
Class DefaultComponentManagerManager |
Line # 41 |
14 |
0% |
6 |
0 |
1.0100% |
---|---|---|---|---|---|---|
getComponentManager(String,boolean) : ComponentManager getComponentManager(String,boolean) : ComponentManager | 6161 | 8.08 | 0.00% | 4.04 | 0.00 | 1.0 1.0100% |
createComponentManager(String) : ComponentManager createComponentManager(String) : ComponentManager | 8484 | 6.06 | 0.00% | 2.02 | 0.00 | 1.0 1.0100% |
0.95
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceWithGlobalDependencyAndUninstallDependencyorg.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceWithGlobalDependencyAndUninstallDependency | 1PASS | ||
0.95
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceWithGlobalDependencyAndUninstallorg.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceWithGlobalDependencyAndUninstall | 1PASS | ||
0.9
|
org.xwiki.component.internal.ContextComponentManagerTest.testDeleteDocumentorg.xwiki.component.internal.ContextComponentManagerTest.testDeleteDocument | 1PASS | ||
0.9
|
org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWikiFromOtherWikiorg.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWikiFromOtherWiki | 1PASS | ||
0.9
|
org.xwiki.component.internal.ContextComponentManagerTest.testDeleteWikiorg.xwiki.component.internal.ContextComponentManagerTest.testDeleteWiki | 1PASS | ||
0.9
|
org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWikiorg.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeWiki | 1PASS | ||
0.9
|
org.xwiki.component.internal.ContextComponentManagerTest.testRegisterComponentInDocumentComponentManagerorg.xwiki.component.internal.ContextComponentManagerTest.testRegisterComponentInDocumentComponentManager | 1PASS | ||
0.9
|
org.xwiki.component.internal.ContextComponentManagerTest.testRegisterComponentInSpaceComponentManagerorg.xwiki.component.internal.ContextComponentManagerTest.testRegisterComponentInSpaceComponentManager | 1PASS | ||
0.9
|
org.xwiki.component.internal.ContextComponentManagerTest.testRegisterComponentInWikiComponentManagerorg.xwiki.component.internal.ContextComponentManagerTest.testRegisterComponentInWikiComponentManager | 1PASS | ||
0.9
|
org.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testSaveWikiMacroorg.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testSaveWikiMacro | 1PASS | ||
0.85
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceAndUninstallAllorg.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceAndUninstallAll | 1PASS | ||
0.85
|
org.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testUnRegisterWikiMacroWithDifferentVisibilityKeysorg.xwiki.rendering.wikimacro.internal.WikiMacrosTest.testUnRegisterWikiMacroWithDifferentVisibilityKeys | 1PASS | ||
0.85
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceAndUninstallDependencyorg.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceAndUninstallDependency | 1PASS | ||
0.85
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceAndUninstallDependencyAllorg.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceAndUninstallDependencyAll | 1PASS | ||
0.85
|
org.xwiki.component.internal.ContextComponentManagerTest.testCreateDocumentComponentManagerorg.xwiki.component.internal.ContextComponentManagerTest.testCreateDocumentComponentManager | 1PASS | ||
0.85
|
org.xwiki.component.internal.ContextComponentManagerTest.testRegisterComponentInUserComponentManagerorg.xwiki.component.internal.ContextComponentManagerTest.testRegisterComponentInUserComponentManager | 1PASS | ||
0.85
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceAndUninstallorg.xwiki.extension.jar.JarExtensionHandlerTest.testMultipleInstallOnANamespaceAndUninstall | 1PASS | ||
0.5
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallEntensionAndUninstallDependencyorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallEntensionAndUninstallDependency | 1PASS | ||
0.5
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallExtensionWithDependencyorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallExtensionWithDependency | 1PASS | ||
0.5
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallDependencyInstallExtensionOnANamespaceAndUninstallDependencyorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallDependencyInstallExtensionOnANamespaceAndUninstallDependency | 1PASS | ||
0.5
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallExtensionWithoutComponentsorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallExtensionWithoutComponents | 1PASS | ||
0.5
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallDependencyInstallExtensionOnANamespaceAndUninstallExtensionorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallDependencyInstallExtensionOnANamespaceAndUninstallExtension | 1PASS | ||
0.5
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallOnNamespaceThenUpgradeOnRootorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallOnNamespaceThenUpgradeOnRoot | 1PASS | ||
0.5
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallOnNamespaceThenOnRootorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallOnNamespaceThenOnRoot | 1PASS | ||
0.5
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testExtensionInstalledOnRootAtInitorg.xwiki.extension.jar.JarExtensionHandlerTest.testExtensionInstalledOnRootAtInit | 1PASS | ||
0.5
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallExtensionorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallExtension | 1PASS | ||
0.5
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallWebjarExtensionorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallWebjarExtension | 1PASS | ||
0.5
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testUninstallInvalidExtensionFromRootorg.xwiki.extension.jar.JarExtensionHandlerTest.testUninstallInvalidExtensionFromRoot | 1PASS | ||
0.4
|
org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testDefaultParameterValuesorg.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testDefaultParameterValues | 1PASS | ||
0.4
|
org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeONDemandorg.xwiki.localization.wiki.internal.DocumentTranslationBundleFactoryTest.getTranslationScopeONDemand | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentTest.testDisplaycom.xpn.xwiki.doc.XWikiDocumentTest.testDisplay | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnRoot | 1PASS | ||
0.4
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithnumberversioncom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithnumberversion | 1PASS | ||
0.4
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallFromRootorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallFromRoot | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsAfterDropPermissionsForRenderingCyclecom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsAfterDropPermissionsForRenderingCycle | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFilesUsingCommonsCompresscom.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFilesUsingCommonsCompress | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachment | 1PASS | ||
0.4
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testRelativeDocumentReferenceorg.xwiki.security.authorization.internal.XWikiRightServiceTest.testRelativeDocumentReference | 1PASS | ||
0.4
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallExtensionWithDependencyOnANamespaceorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallExtensionWithDependencyOnANamespace | 1PASS | ||
0.4
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallExtensionOnNamespaceorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallAndUninstallExtensionOnNamespace | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testCreationDateAfterDocumentCopycom.xpn.xwiki.XWikiTest.testCreationDateAfterDocumentCopy | 1PASS | ||
0.4
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testGroupFromAnotherWiki1org.xwiki.security.authorization.internal.XWikiRightServiceTest.testGroupFromAnotherWiki1 | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithGuestUsercom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithGuestUser | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsWhenNoContextDocumentIsSetcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsWhenNoContextDocumentIsSet | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testAuthorAfterDocumentCopycom.xpn.xwiki.XWikiTest.testAuthorAfterDocumentCopy | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testCreatorAfterDocumentCopycom.xpn.xwiki.XWikiTest.testCreatorAfterDocumentCopy | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitleNonUtf8PlatformEncodingcom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitleNonUtf8PlatformEncoding | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentcom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocument | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceHTMLContentLengthcom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceHTMLContentLength | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testAdminAccessLevelscom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testAdminAccessLevels | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallMandatoryorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallMandatory | 1PASS | ||
0.4
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testInstallExtensionAndUninstallDependencyOnANamespaceorg.xwiki.extension.jar.JarExtensionHandlerTest.testInstallExtensionAndUninstallDependencyOnANamespace | 1PASS | ||
0.4
|
com.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationOrderAndIgnorecom.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationOrderAndIgnore | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallFromWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallFromWiki | 1PASS | ||
0.4
|
org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecuteWhenInnerMacroorg.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecuteWhenInnerMacro | 1PASS | ||
0.4
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnRootWithoutProgrammingRigthsorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnRootWithoutProgrammingRigths | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentTest.testDisplay1020com.xpn.xwiki.doc.XWikiDocumentTest.testDisplay1020 | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileLinkcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileLink | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentTest.testBackupRestoreContextUpdatesVContextcom.xpn.xwiki.doc.XWikiDocumentTest.testBackupRestoreContextUpdatesVContext | 1PASS | ||
0.4
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testGuestRightsOnEmptyWikiorg.xwiki.security.authorization.internal.XWikiRightServiceTest.testGuestRightsOnEmptyWiki | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourcePolymorphismcom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourcePolymorphism | 1PASS | ||
0.4
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testUserFromAnotherWiki2org.xwiki.security.authorization.internal.XWikiRightServiceTest.testUserFromAnotherWiki2 | 1PASS | ||
0.4
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnNamespaceWithoutProgrammingRigthsorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnNamespaceWithoutProgrammingRigths | 1PASS | ||
0.4
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testExtensionInstalledOnNamespaceAtInitorg.xwiki.extension.jar.JarExtensionHandlerTest.testExtensionInstalledOnNamespaceAtInit | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testUpdateArchiveWhenSpaceInUsernamecom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testUpdateArchiveWhenSpaceInUsername | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithOnlyPageAsReferencecom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithOnlyPageAsReference | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourcePlainContentLengthcom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourcePlainContentLength | 1PASS | ||
0.4
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenWithTranslationcom.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenWithTranslation | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileListcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileList | 1PASS | ||
0.4
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenDocumentModifiedAfterItIsInCachecom.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenDocumentModifiedAfterItIsInCache | 1PASS | ||
0.4
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetDocumentBundlesWhenDocumentDoesNotExistcom.xpn.xwiki.web.XWikiMessageToolTest.testGetDocumentBundlesWhenDocumentDoesNotExist | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetUniqueLinkedPagescom.xpn.xwiki.doc.XWikiDocumentTest.testGetUniqueLinkedPages | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWhenURLIsNotZipFilecom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWhenURLIsNotZipFile | 1PASS | ||
0.4
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenWithUTF8Translationcom.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenWithUTF8Translation | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithTitlecom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedTitleWithTitle | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceConsistencycom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceConsistency | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWiki | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnRoot | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testLanguageSelectioncom.xpn.xwiki.XWikiTest.testLanguageSelection | 1PASS | ||
0.4
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsPreserveVersioncom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsPreserveVersion | 1PASS | ||
0.4
|
com.xpn.xwiki.api.UserTest.testIsUserInGroupDoesNotThrowNPEcom.xpn.xwiki.api.UserTest.testIsUserInGroupDoesNotThrowNPE | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testUpdateLoadcom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testUpdateLoad | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testSaveDocumentSendsObservationEventscom.xpn.xwiki.XWikiTest.testSaveDocumentSendsObservationEvents | 1PASS | ||
0.4
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testGlobalGroupInLocalGrouporg.xwiki.security.authorization.internal.XWikiRightServiceTest.testGlobalGroupInLocalGroup | 1PASS | ||
0.4
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnNamespaceorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnNamespace | 1PASS | ||
0.4
|
com.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationForcecom.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationForce | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnRoot | 1PASS | ||
0.4
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnNamespaceorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testUninstallOnNamespace | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentCleansVelocityMacroCachecom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentCleansVelocityMacroCache | 1PASS | ||
0.4
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithattachmentwithoutdatecom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithattachmentwithoutdate | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithUserFromAnotherWikicom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelWhithUserFromAnotherWiki | 1PASS | ||
0.4
|
com.xpn.xwiki.store.VoidAttachmentVersioningStoreTest.testHistorycom.xpn.xwiki.store.VoidAttachmentVersioningStoreTest.testHistory | 1PASS | ||
0.4
|
org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testGetCurrentMacroBlockorg.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testGetCurrentMacroBlock | 1PASS | ||
0.4
|
com.xpn.xwiki.web.XWikiMessageToolBridgeTest.updateWikiTranslationCachecom.xpn.xwiki.web.XWikiMessageToolBridgeTest.updateWikiTranslationCache | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelOnEmptyWikicom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelOnEmptyWiki | 1PASS | ||
0.4
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testProgrammingRightsWhenNoContextDocumentIsSetorg.xwiki.security.authorization.internal.XWikiRightServiceTest.testProgrammingRightsWhenNoContextDocumentIsSet | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelForDeleteRightWhenUserIsDocumentCreatorcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelForDeleteRightWhenUserIsDocumentCreator | 1PASS | ||
0.4
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetReturnsFromCacheWhenCalledTwicecom.xpn.xwiki.web.XWikiMessageToolTest.testGetReturnsFromCacheWhenCalledTwice | 1PASS | ||
0.4
|
org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecuteWhenWikiMacroDirectlyProvideTheResultorg.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecuteWhenWikiMacroDirectlyProvideTheResult | 1PASS | ||
0.4
|
org.xwiki.component.internal.ContextComponentManagerTest.testRegisterComponentInRootComponentManagerorg.xwiki.component.internal.ContextComponentManagerTest.testRegisterComponentInRootComponentManager | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectFieldcom.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectField | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiWithoutAdminRightsorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiWithoutAdminRights | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentXarCreatedByCommonsCompresscom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentXarCreatedByCommonsCompress | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testCreateNewWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testCreateNewWiki | 1PASS | ||
0.4
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunexistingobjectpropertycom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunexistingobjectproperty | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsAfterDropPermissionscom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testProgrammingRightsAfterDropPermissions | 1PASS | ||
0.4
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnRootWithoutProgrammingRigthsorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnRootWithoutProgrammingRigths | 1PASS | ||
0.4
|
com.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUserWithoutWikicom.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUserWithoutWiki | 1PASS | ||
0.4
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testUserFromAnotherWiki1org.xwiki.security.authorization.internal.XWikiRightServiceTest.testUserFromAnotherWiki1 | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetUniqueLinkedPages10com.xpn.xwiki.doc.XWikiDocumentTest.testGetUniqueLinkedPages10 | 1PASS | ||
0.4
|
org.xwiki.extension.jar.JarExtensionHandlerTest.testUpgradeAndDowngradeExtensionOnNamespaceorg.xwiki.extension.jar.JarExtensionHandlerTest.testUpgradeAndDowngradeExtensionOnNamespace | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnRootWithoutAdminRightsorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnRootWithoutAdminRights | 1PASS | ||
0.4
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunknownclasspropertycom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithunknownclassproperty | 1PASS | ||
0.4
|
org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecuteorg.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecute | 1PASS | ||
0.4
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenInXWikiPreferencescom.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenInXWikiPreferences | 1PASS | ||
0.4
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnRootorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnRoot | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testGetCurrentContentSyntaxIdcom.xpn.xwiki.XWikiTest.testGetCurrentContentSyntaxId | 1PASS | ||
0.4
|
org.xwiki.security.authorization.internal.AuthorizationManagerTest.testRightOnUserAndDeleteorg.xwiki.security.authorization.internal.AuthorizationManagerTest.testRightOnUserAndDelete | 1PASS | ||
0.4
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testProgrammingRightsWhenCustomSecureDocIsSetorg.xwiki.security.authorization.internal.XWikiRightServiceTest.testProgrammingRightsWhenCustomSecureDocIsSet | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportExtensioncom.xpn.xwiki.plugin.packaging.ImportTest.testImportExtension | 1PASS | ||
0.4
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWithParameterscom.xpn.xwiki.web.XWikiMessageToolTest.testGetWithParameters | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceXMLContentLengthcom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testArticleSourceXMLContentLength | 1PASS | ||
0.4
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnNamespaceWithoutProgrammingRigthsorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testInstallOnNamespaceWithoutProgrammingRigths | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testGetPrefsClasscom.xpn.xwiki.XWikiTest.testGetPrefsClass | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testGetDocumentWithEntityReferencecom.xpn.xwiki.XWikiTest.testGetDocumentWithEntityReference | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testValidationKeyStoragecom.xpn.xwiki.XWikiTest.testValidationKeyStorage | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnUnsupportedNamespaceorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnUnsupportedNamespace | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentTest.testGetRenderedContentWithSourceSyntaxcom.xpn.xwiki.doc.XWikiDocumentTest.testGetRenderedContentWithSourceSyntax | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testRemoveVersionscom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testRemoveVersions | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWikiAndRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWikiAndRoot | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceAccessRightscom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceAccessRights | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUpgradeOnWiki | 1PASS | ||
0.4
|
com.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUsersAndGroupsPreserveVersioncom.xpn.xwiki.internal.filter.output.UserInstanceOutputFilterStreamTest.testImportUsersAndGroupsPreserveVersion | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelAdminOnDocumentcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testHasAccessLevelAdminOnDocument | 1PASS | ||
0.4
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testWikiOwnerFromAnotherWikiorg.xwiki.security.authorization.internal.XWikiRightServiceTest.testWikiOwnerFromAnotherWiki | 1PASS | ||
0.4
|
org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecuteWhenInlineAndWithMacroorg.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecuteWhenInlineAndWithMacro | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testParseTemplateConsidersAttachmentcom.xpn.xwiki.XWikiTest.testParseTemplateConsidersAttachment | 1PASS | ||
0.4
|
org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecuteWhenWithDifferentMacroSyntaxorg.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroTest.testExecuteWhenWithDifferentMacroSyntax | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnWikiWithoutAdminRightsorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnWikiWithoutAdminRights | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFilescom.xpn.xwiki.plugin.packaging.PackageTest.testImportWithHeterogeneousEncodingInFiles | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnRootAndWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnRootAndWiki | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testDeleteDocumentSendsObservationEventscom.xpn.xwiki.XWikiTest.testDeleteDocumentSendsObservationEvents | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentTextRightscom.xpn.xwiki.doc.XWikiDocumentRenderingTest.testGetRenderedContentTextRights | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnRootWithoutAdminRightsorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallOnRootWithoutAdminRights | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileTreeListcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testGetFileTreeList | 1PASS | ||
0.4
|
com.xpn.xwiki.store.VoidAttachmentVersioningStoreTest.testStorecom.xpn.xwiki.store.VoidAttachmentVersioningStoreTest.testStore | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testIsMultilingualDefaultFalsecom.xpn.xwiki.XWikiTest.testIsMultilingualDefaultFalse | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiWithoutAuthororg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnWikiWithoutAuthor | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testVerifyDiffAndFullRevisionAlgorithmcom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testVerifyDiffAndFullRevisionAlgorithm | 1PASS | ||
0.4
|
org.xwiki.extension.script.ExtensionManagerScriptServiceTest.testOverwriteAllowedNamespacesorg.xwiki.extension.script.ExtensionManagerScriptServiceTest.testOverwriteAllowedNamespaces | 1PASS | ||
0.4
|
com.xpn.xwiki.stats.impl.StatsUtilTest.testGetFilteredUserscom.xpn.xwiki.stats.impl.StatsUtilTest.testGetFilteredUsers | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentArchiveTest.testVerifyCreationDateWhenLoadingDocumentFromArchivecom.xpn.xwiki.doc.XWikiDocumentArchiveTest.testVerifyCreationDateWhenLoadingDocumentFromArchive | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testDeniesAccessLevelForCreateIfDocumentDeniesEditcom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testDeniesAccessLevelForCreateIfDocumentDeniesEdit | 1PASS | ||
0.4
|
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testEditRightsOnWebPreferencesDocumentscom.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImplTest.testEditRightsOnWebPreferencesDocuments | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWhenURLIsZipButNotPointingInsideZipcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWhenURLIsZipButNotPointingInsideZip | 1PASS | ||
0.4
|
com.xpn.xwiki.doc.XWikiDocumentTest.testDisplayTemplate20com.xpn.xwiki.doc.XWikiDocumentTest.testDisplayTemplate20 | 1PASS | ||
0.4
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsWithoutLocaleAndRevisioncom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testImportDocumentsWithoutLocaleAndRevision | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testUninstallExtensionWithCommonDocumentOnWiki | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceContentTypecom.xpn.xwiki.plugin.feed.SyndEntryDocumentSourceTest.testSourceContentType | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenOnRoot | 1PASS | ||
0.4
|
com.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenInXWikiConfigurationFilecom.xpn.xwiki.web.XWikiMessageToolTest.testGetWhenInXWikiConfigurationFile | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenUpgradeOnRootorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testInstallOnNamespaceThenUpgradeOnRoot | 1PASS | ||
0.4
|
com.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithoutauthorandcreatorcom.xpn.xwiki.internal.filter.output.DocumentInstanceOutputFilterStreamTest.testDocumentwithoutauthorandcreator | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWithInvalidZipURLcom.xpn.xwiki.plugin.zipexplorer.ZipExplorerTest.testDownloadAttachmentWithInvalidZipURL | 1PASS | ||
0.4
|
com.xpn.xwiki.api.UserTest.testGetEmailcom.xpn.xwiki.api.UserTest.testGetEmail | 1PASS | ||
0.4
|
com.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectFieldBeforeAttachmentcom.xpn.xwiki.XWikiTest.testParseTemplateConsidersObjectFieldBeforeAttachment | 1PASS | ||
0.4
|
org.xwiki.security.authorization.internal.XWikiRightServiceTest.testGlobalUserInLocalGrouporg.xwiki.security.authorization.internal.XWikiRightServiceTest.testGlobalUserInLocalGroup | 1PASS | ||
0.4
|
org.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testDowngradeOnWikiorg.xwiki.extension.xar.internal.handler.XarExtensionHandlerTest.testDowngradeOnWiki | 1PASS | ||
0.4
|
com.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitlecom.xpn.xwiki.plugin.packaging.ImportTest.testImportDocumentNonAsciiTitle | 1PASS | ||
0.4
|
com.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationWhenNoVersioncom.xpn.xwiki.store.migration.XWikiMigrationManagerTest.testMigrationWhenNoVersion | 1PASS | ||
0.3
|
org.xwiki.localization.jar.internal.JARTranslationBundleFactoryTest.upgradeJarorg.xwiki.localization.jar.internal.JARTranslationBundleFactoryTest.upgradeJar | 1PASS | ||
0.3
|
org.xwiki.localization.jar.internal.JARTranslationBundleFactoryTest.installJarorg.xwiki.localization.jar.internal.JARTranslationBundleFactoryTest.installJar | 1PASS | ||
0.3
|
org.xwiki.localization.jar.internal.JARTranslationBundleFactoryTest.uninstallExtensionorg.xwiki.localization.jar.internal.JARTranslationBundleFactoryTest.uninstallExtension | 1PASS | ||
0.3
|
org.xwiki.localization.jar.internal.JARTranslationBundleFactoryTest.installEmptyJarorg.xwiki.localization.jar.internal.JARTranslationBundleFactoryTest.installEmptyJar | 1PASS | ||
0.3
|
org.xwiki.localization.jar.internal.JARTranslationBundleFactoryTest.getInstalledJarTranslationsorg.xwiki.localization.jar.internal.JARTranslationBundleFactoryTest.getInstalledJarTranslations | 1PASS |
1 | /* | ||||||
2 | * See the NOTICE file distributed with this work for additional | ||||||
3 | * information regarding copyright ownership. | ||||||
4 | * | ||||||
5 | * This is free software; you can redistribute it and/or modify it | ||||||
6 | * under the terms of the GNU Lesser General Public License as | ||||||
7 | * published by the Free Software Foundation; either version 2.1 of | ||||||
8 | * the License, or (at your option) any later version. | ||||||
9 | * | ||||||
10 | * This software is distributed in the hope that it will be useful, | ||||||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||||
13 | * Lesser General Public License for more details. | ||||||
14 | * | ||||||
15 | * You should have received a copy of the GNU Lesser General Public | ||||||
16 | * License along with this software; if not, write to the Free | ||||||
17 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||||||
18 | * 02110-1301 USA, or see the FSF site: http://www.fsf.org. | ||||||
19 | */ | ||||||
20 | package org.xwiki.component.internal.multi; | ||||||
21 | |||||||
22 | import java.util.Map; | ||||||
23 | import java.util.concurrent.ConcurrentHashMap; | ||||||
24 | |||||||
25 | import javax.inject.Inject; | ||||||
26 | import javax.inject.Singleton; | ||||||
27 | |||||||
28 | import org.xwiki.component.annotation.Component; | ||||||
29 | import org.xwiki.component.manager.ComponentLookupException; | ||||||
30 | import org.xwiki.component.manager.ComponentManager; | ||||||
31 | import org.xwiki.component.namespace.NamespaceUtils; | ||||||
32 | |||||||
33 | /** | ||||||
34 | * Default implementation of {@link ComponentManagerManager}. | ||||||
35 | * | ||||||
36 | * @version $Id: 2354c510ff74d1f65c5bf0aea258cb8dc84b3914 $ | ||||||
37 | * @since 3.3M2 | ||||||
38 | */ | ||||||
39 | @Component | ||||||
40 | @Singleton | ||||||
|
|||||||
41 | public class DefaultComponentManagerManager implements ComponentManagerManager | ||||||
42 | { | ||||||
43 | /** | ||||||
44 | * The Factory to use to create Component Managers whenever a component is registered for a key that doesn't already | ||||||
45 | * exist. | ||||||
46 | */ | ||||||
47 | @Inject | ||||||
48 | private ComponentManagerFactory defaultComponentManagerFactory; | ||||||
49 | |||||||
50 | /** | ||||||
51 | * The root component manager. | ||||||
52 | */ | ||||||
53 | @Inject | ||||||
54 | private ComponentManager rootComponentManager; | ||||||
55 | |||||||
56 | /** | ||||||
57 | * Holds Component Managers based on identifiers. | ||||||
58 | */ | ||||||
59 | private Map<String, ComponentManager> componentManagers = new ConcurrentHashMap<>(); | ||||||
60 | |||||||
|
|||||||
61 | 179381 | @Override... | |||||
62 | public ComponentManager getComponentManager(String namespace, boolean create) | ||||||
63 | { | ||||||
64 | 179373 | ComponentManager componentManager; | |||||
65 | 179367 | if (namespace == null) { | |||||
66 | 74 | componentManager = this.rootComponentManager; | |||||
67 | } else { | ||||||
68 | 179297 | componentManager = this.componentManagers.get(namespace); | |||||
69 | 179297 | if (componentManager == null && create) { | |||||
70 | 102 | componentManager = createComponentManager(namespace); | |||||
71 | 102 | this.componentManagers.put(namespace, componentManager); | |||||
72 | } | ||||||
73 | } | ||||||
74 | |||||||
75 | 179360 | return componentManager; | |||||
76 | } | ||||||
77 | |||||||
78 | /** | ||||||
79 | * Create a new {@link ComponentManager} for the provided id. | ||||||
80 | * | ||||||
81 | * @param namespace the identifier of the component manager | ||||||
82 | * @return a new {@link ComponentManager} instance | ||||||
83 | */ | ||||||
|
|||||||
84 | 102 | private ComponentManager createComponentManager(String namespace)... | |||||
85 | { | ||||||
86 | 102 | String prefix = NamespaceUtils.getPrefix(namespace); | |||||
87 | |||||||
88 | 102 | ComponentManagerFactory componentManagerFactory; | |||||
89 | 102 | try { | |||||
90 | 102 | componentManagerFactory = this.rootComponentManager.getInstance(ComponentManagerFactory.class, prefix); | |||||
91 | } catch (ComponentLookupException e) { | ||||||
92 | 55 | componentManagerFactory = this.defaultComponentManagerFactory; | |||||
93 | } | ||||||
94 | |||||||
95 | 102 | return componentManagerFactory.createComponentManager(namespace, this.rootComponentManager); | |||||
96 | } | ||||||
97 | } |