@Internal public class ComponentManager extends Object implements Shutdown
ComponentManager.getInstance().getProjectManager()
. Plugins developers should no longer use these -
please use ComponentAccessor
instead.
More information can be found at the picocontainer website.Modifier and Type | Class and Description |
---|---|
static interface |
ComponentManager.State
The state of the
ComponentManager . |
Modifier and Type | Field and Description |
---|---|
static String |
EXTENSION_PROVIDER_PROPERTY |
Modifier and Type | Method and Description |
---|---|
void |
bootstrapInitialise()
Initialization registers components for the bootstrap loading of JIRA.
|
void |
dispose() |
void |
extendBootstrapContainerForFailedStartup() |
ApplicationProperties |
getApplicationProperties()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
AssigneeResolver |
getAssigneeResolver()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
AttachmentManager |
getAttachmentManager()
Retrieves and returns the attachment manager instance
|
AttachmentPathManager |
getAttachmentPathManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
AvatarManager |
getAvatarManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
BulkOperationManager |
getBulkOperationManager()
Retrieves and return the bulk operation manager instance
|
ChangeHistoryManager |
getChangeHistoryManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
ColumnLayoutManager |
getColumnLayoutManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
CommentManager |
getCommentManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
static <T> T |
getComponent(Class<T> clazz)
Deprecated.
since 6.0 - please use the jira-api
ComponentAccessor.getComponent(Class) instead |
ComponentClassManager |
getComponentClassManager()
Deprecated.
Use
ComponentAccessor.getComponentClassManager() instead. Since v5.0. |
static <T> T |
getComponentInstanceOfType(Class<T> clazz)
Deprecated.
since 6.0 - please use the jira-api
ComponentAccessor.getComponent(Class) instead |
static <T> List<T> |
getComponentsOfType(Class<T> clazz)
Returns all the components currently inside of Pico which are instances of the given class.
|
static <T> Map<String,T> |
getComponentsOfTypeMap(Class<T> iface)
Returns all the components currently inside Pico which are instances of the given class, mapping them to their
component key.
|
ConstantsManager |
getConstantsManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
org.picocontainer.PicoContainer |
getContainer()
Returns container
|
com.atlassian.crowd.embedded.api.CrowdService |
getCrowdService()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
CustomFieldManager |
getCustomFieldManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
EventTypeManager |
getEventTypeManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
FieldLayoutManager |
getFieldLayoutManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
FieldManager |
getFieldManager()
Deprecated.
Use
ComponentAccessor.getFieldManager() instead. Since v4.4. |
FieldScreenManager |
getFieldScreenManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
FieldScreenRendererFactory |
getFieldScreenRendererFactory()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
FieldScreenSchemeManager |
getFieldScreenSchemeManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
FileIconBean |
getFileIconBean()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
IndexLifecycleManager |
getIndexLifecycleManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
IssueIndexManager |
getIndexManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
IndexPathManager |
getIndexPathManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
static ComponentManager |
getInstance()
Deprecated.
Public use of this method is deprecated - please use
ComponentAccessor instead. Since v5.2. |
IssueCreationHelperBean |
getIssueCreationHelperBean()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
IssueFactory |
getIssueFactory()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
IssueLinkManager |
getIssueLinkManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
IssueManager |
getIssueManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
IssueService |
getIssueService()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
IssueTypeSchemeManager |
getIssueTypeSchemeManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
IssueTypeScreenSchemeManager |
getIssueTypeScreenSchemeManager()
Deprecated.
Use
ComponentAccessor.getIssueTypeScreenSchemeManager() instead. Since v5.0. |
IssueUpdater |
getIssueUpdater()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
JiraAuthenticationContext |
getJiraAuthenticationContext()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
JiraDurationUtils |
getJiraDurationUtils()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
JiraLocaleUtils |
getJiraLocaleUtils()
Deprecated.
Get LocaleManager/LocaleParser injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
MailingListCompiler |
getMailingListCompiler()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
com.atlassian.mail.server.MailServerManager |
getMailServerManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
MoveSubTaskOperationManager |
getMoveSubTaskOperationManager()
Retrieves and returns the move subtask operation manager instance
|
org.picocontainer.MutablePicoContainer |
getMutablePicoContainer()
Returns container
|
static <T> T |
getOSGiComponentInstanceOfType(Class<T> clazz)
Deprecated.
since 6.0 - please use the jira-api
ComponentAccessor.getOSGiComponentInstanceOfType(Class) instead |
OutlookDateManager |
getOutlookDateManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
PermissionContextFactory |
getPermissionContextFactory()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
PermissionManager |
getPermissionManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
PermissionTypeManager |
getPermissionTypeManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
com.atlassian.plugin.PluginAccessor |
getPluginAccessor()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
com.atlassian.plugin.PluginController |
getPluginController()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
com.atlassian.plugin.event.PluginEventManager |
getPluginEventManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
com.atlassian.plugin.PluginSystemLifecycle |
getPluginSystemLifecycle()
Retrieves and returns the plugin system's lifecycle instance
|
PortalPageManager |
getPortalPageManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
PortalPageService |
getPortalPageService()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
ProjectComponentManager |
getProjectComponentManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
ProjectFactory |
getProjectFactory()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
ProjectManager |
getProjectManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
RendererManager |
getRendererManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
SchemePermissions |
getSchemePermissions()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
SearchProvider |
getSearchProvider()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
SearchRequestAdminService |
getSearchRequestAdminService()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
SearchRequestFactory |
getSearchRequestFactory()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
SearchRequestManager |
getSearchRequestManager()
Deprecated.
v3.13 please use
SearchRequestService |
SearchRequestService |
getSearchRequestService()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
SearchService |
getSearchService()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
ComponentManager.State |
getState()
What
ComponentManager.State is the ComponentManager in. |
SubscriptionMailQueueItemFactory |
getSubscriptionMailQueueItemFactory()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
SubTaskManager |
getSubTaskManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
TaskManager |
getTaskManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
TemplateManager |
getTemplateManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
TranslationManager |
getTranslationManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
com.atlassian.security.auth.trustedapps.TrustedApplicationsManager |
getTrustedApplicationsManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
UpgradeManager |
getUpgradeManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
UserPreferencesManager |
getUserPreferencesManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
UserPropertyManager |
getUserPropertyManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
UserUtil |
getUserUtil()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
com.atlassian.velocity.VelocityManager |
getVelocityManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
VersionManager |
getVersionManager()
Retrieves and returns the version manager instance
|
VoteManager |
getVoteManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
WatcherManager |
getWatcherManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
com.atlassian.plugin.webresource.WebResourceManager |
getWebResourceManager()
Retrieves and returns the web resource manager instance
|
WorkflowManager |
getWorkflowManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
WorkflowSchemeManager |
getWorkflowSchemeManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
WorklogManager |
getWorklogManager()
Deprecated.
Get this component injected in your constructor or use
ComponentAccessor for static access instead. Since v5.2. |
void |
initialise()
Initialization registers components and then registers extensions.
|
void |
refreshUpgradeManager()
Create a new UpgradeManager.
|
void |
setupInitialise()
If JIRA needs to be setup, then add the extra components needed to the bootstrap container.
|
void |
shutdown()
Shutdown.
|
void |
start()
Adds license configuration in license manager.
|
void |
stop() |
public static final String EXTENSION_PROVIDER_PROPERTY
public void bootstrapInitialise()
public void setupInitialise()
public void extendBootstrapContainerForFailedStartup()
public void initialise()
public void start()
public void stop()
public void dispose()
public void shutdown()
Shutdown
public ComponentManager.State getState()
ComponentManager.State
is the ComponentManager
in.public org.picocontainer.PicoContainer getContainer()
public org.picocontainer.MutablePicoContainer getMutablePicoContainer()
public com.atlassian.plugin.webresource.WebResourceManager getWebResourceManager()
public AttachmentManager getAttachmentManager()
public VersionManager getVersionManager()
public BulkOperationManager getBulkOperationManager()
public MoveSubTaskOperationManager getMoveSubTaskOperationManager()
public static ComponentManager getInstance()
ComponentAccessor
instead. Since v5.2.public static <T> T getComponentInstanceOfType(Class<T> clazz)
ComponentAccessor.getComponent(Class)
instead
In practise, this is the same as getComponent(Class)
except it will try to find a unique component that
implements/extends the given Class even if the Class is not an actual component key.
Please note that this method only gets components from JIRA's core Pico Containter. That is, it retrieves
core components and components declared in Plugins1 plugins, but not components declared in Plugins2 plugins.
Plugins2 components can be retrieved via the getOSGiComponentInstanceOfType(Class)
method, but only if
they are public.
clazz
- class to find a component instance bygetOSGiComponentInstanceOfType(Class)
,
PicoContainer#getComponent(Class))
public static <T> T getComponent(Class<T> clazz)
ComponentAccessor.getComponent(Class)
instead
In practise, this is the same as getComponentInstanceOfType(Class)
except it will fail faster if the
given Class is not a known component key (it also has a shorter and more meaningful name).
Please note that this method only gets components from JIRA's core Pico Containter. That is, it retrieves
core components and components declared in Plugins1 plugins, but not components declared in Plugins2 plugins.
Plugins2 components can be retrieved via the getOSGiComponentInstanceOfType(Class)
method, but only if
they are public.
clazz
- class to find a component instance bygetOSGiComponentInstanceOfType(Class)
,
PicoContainer.getComponent(Object)
@Nullable public static <T> T getOSGiComponentInstanceOfType(Class<T> clazz)
ComponentAccessor.getOSGiComponentInstanceOfType(Class)
instead
Plugin developers should prefer the API method ComponentAccessor.getOSGiComponentInstanceOfType(Class)
.
It is important to note that this only works for public components. That is components with public="true"
declared in their XML configuration. This means that they are available for other plugins to
import.
A use case for this is when for example for the dashboards plugin. In several areas in JIRA we may want to
render gadgets via the GadgetViewFactory
. Whilst the interface for this
component is available in JIRA core, the implementation is provided by the dashboards OSGi bundle. This method
will allow us to access it.
clazz
- class to find an OSGi component instance forgetComponentInstanceOfType(Class)
public static <T> List<T> getComponentsOfType(Class<T> clazz)
clazz
- the class to search for.public static <T> Map<String,T> getComponentsOfTypeMap(Class<T> iface)
iface
- The class to search forpublic IssueUpdater getIssueUpdater()
ComponentAccessor
for static access instead. Since v5.2.public IssueCreationHelperBean getIssueCreationHelperBean()
ComponentAccessor
for static access instead. Since v5.2.public FileIconBean getFileIconBean()
ComponentAccessor
for static access instead. Since v5.2.public IssueManager getIssueManager()
ComponentAccessor
for static access instead. Since v5.2.public WorkflowManager getWorkflowManager()
ComponentAccessor
for static access instead. Since v5.2.public WorklogManager getWorklogManager()
ComponentAccessor
for static access instead. Since v5.2.public IssueFactory getIssueFactory()
ComponentAccessor
for static access instead. Since v5.2.Issue
frompublic ProjectFactory getProjectFactory()
ComponentAccessor
for static access instead. Since v5.2.public ConstantsManager getConstantsManager()
ComponentAccessor
for static access instead. Since v5.2.public FieldManager getFieldManager()
ComponentAccessor.getFieldManager()
instead. Since v4.4.public CustomFieldManager getCustomFieldManager()
ComponentAccessor
for static access instead. Since v5.2.public IssueTypeSchemeManager getIssueTypeSchemeManager()
ComponentAccessor
for static access instead. Since v5.2.public IssueTypeScreenSchemeManager getIssueTypeScreenSchemeManager()
ComponentAccessor.getIssueTypeScreenSchemeManager()
instead. Since v5.0.public SubTaskManager getSubTaskManager()
ComponentAccessor
for static access instead. Since v5.2.public IssueLinkManager getIssueLinkManager()
ComponentAccessor
for static access instead. Since v5.2.public ApplicationProperties getApplicationProperties()
ComponentAccessor
for static access instead. Since v5.2.public com.atlassian.crowd.embedded.api.CrowdService getCrowdService()
ComponentAccessor
for static access instead. Since v5.2.public PermissionManager getPermissionManager()
ComponentAccessor
for static access instead. Since v5.2.public PermissionTypeManager getPermissionTypeManager()
ComponentAccessor
for static access instead. Since v5.2.public FieldLayoutManager getFieldLayoutManager()
ComponentAccessor
for static access instead. Since v5.2.public ColumnLayoutManager getColumnLayoutManager()
ComponentAccessor
for static access instead. Since v5.2.public ProjectManager getProjectManager()
ComponentAccessor
for static access instead. Since v5.2.public VoteManager getVoteManager()
ComponentAccessor
for static access instead. Since v5.2.public JiraLocaleUtils getJiraLocaleUtils()
ComponentAccessor
for static access instead. Since v5.2.public com.atlassian.plugin.PluginSystemLifecycle getPluginSystemLifecycle()
public com.atlassian.plugin.PluginAccessor getPluginAccessor()
ComponentAccessor
for static access instead. Since v5.2.public com.atlassian.plugin.event.PluginEventManager getPluginEventManager()
ComponentAccessor
for static access instead. Since v5.2.public ComponentClassManager getComponentClassManager()
ComponentAccessor.getComponentClassManager()
instead. Since v5.0.public com.atlassian.plugin.PluginController getPluginController()
ComponentAccessor
for static access instead. Since v5.2.public UpgradeManager getUpgradeManager()
ComponentAccessor
for static access instead. Since v5.2.public RendererManager getRendererManager()
ComponentAccessor
for static access instead. Since v5.2.public FieldScreenRendererFactory getFieldScreenRendererFactory()
ComponentAccessor
for static access instead. Since v5.2.public WorkflowSchemeManager getWorkflowSchemeManager()
ComponentAccessor
for static access instead. Since v5.2.public IndexLifecycleManager getIndexLifecycleManager()
ComponentAccessor
for static access instead. Since v5.2.public IssueIndexManager getIndexManager()
ComponentAccessor
for static access instead. Since v5.2.public IssueService getIssueService()
ComponentAccessor
for static access instead. Since v5.2.public IndexPathManager getIndexPathManager()
ComponentAccessor
for static access instead. Since v5.2.public AttachmentPathManager getAttachmentPathManager()
ComponentAccessor
for static access instead. Since v5.2.public TranslationManager getTranslationManager()
ComponentAccessor
for static access instead. Since v5.2.public JiraAuthenticationContext getJiraAuthenticationContext()
ComponentAccessor
for static access instead. Since v5.2.public WatcherManager getWatcherManager()
ComponentAccessor
for static access instead. Since v5.2.public SearchService getSearchService()
ComponentAccessor
for static access instead. Since v5.2.public SearchProvider getSearchProvider()
ComponentAccessor
for static access instead. Since v5.2.@Deprecated public SearchRequestManager getSearchRequestManager()
SearchRequestService
public SearchRequestService getSearchRequestService()
ComponentAccessor
for static access instead. Since v5.2.public SearchRequestAdminService getSearchRequestAdminService()
ComponentAccessor
for static access instead. Since v5.2.public SearchRequestFactory getSearchRequestFactory()
ComponentAccessor
for static access instead. Since v5.2.SearchRequestFactory
public FieldScreenManager getFieldScreenManager()
ComponentAccessor
for static access instead. Since v5.2.public FieldScreenSchemeManager getFieldScreenSchemeManager()
ComponentAccessor
for static access instead. Since v5.2.public SchemePermissions getSchemePermissions()
ComponentAccessor
for static access instead. Since v5.2.public com.atlassian.mail.server.MailServerManager getMailServerManager()
ComponentAccessor
for static access instead. Since v5.2.public EventTypeManager getEventTypeManager()
ComponentAccessor
for static access instead. Since v5.2.public TemplateManager getTemplateManager()
ComponentAccessor
for static access instead. Since v5.2.public UserUtil getUserUtil()
ComponentAccessor
for static access instead. Since v5.2.public AssigneeResolver getAssigneeResolver()
ComponentAccessor
for static access instead. Since v5.2.public MailingListCompiler getMailingListCompiler()
ComponentAccessor
for static access instead. Since v5.2.public SubscriptionMailQueueItemFactory getSubscriptionMailQueueItemFactory()
ComponentAccessor
for static access instead. Since v5.2.public com.atlassian.velocity.VelocityManager getVelocityManager()
ComponentAccessor
for static access instead. Since v5.2.public CommentManager getCommentManager()
ComponentAccessor
for static access instead. Since v5.2.public void refreshUpgradeManager()
public ProjectComponentManager getProjectComponentManager()
ComponentAccessor
for static access instead. Since v5.2.public ChangeHistoryManager getChangeHistoryManager()
ComponentAccessor
for static access instead. Since v5.2.ChangeHistoryManager
manager instancepublic PermissionContextFactory getPermissionContextFactory()
ComponentAccessor
for static access instead. Since v5.2.public UserPreferencesManager getUserPreferencesManager()
ComponentAccessor
for static access instead. Since v5.2.public UserPropertyManager getUserPropertyManager()
ComponentAccessor
for static access instead. Since v5.2.public JiraDurationUtils getJiraDurationUtils()
ComponentAccessor
for static access instead. Since v5.2.public TaskManager getTaskManager()
ComponentAccessor
for static access instead. Since v5.2.TaskManager
TaskManager
public com.atlassian.security.auth.trustedapps.TrustedApplicationsManager getTrustedApplicationsManager()
ComponentAccessor
for static access instead. Since v5.2.public OutlookDateManager getOutlookDateManager()
ComponentAccessor
for static access instead. Since v5.2.public PortalPageService getPortalPageService()
ComponentAccessor
for static access instead. Since v5.2.PortalPageService
public PortalPageManager getPortalPageManager()
ComponentAccessor
for static access instead. Since v5.2.PortalPageManager
public AvatarManager getAvatarManager()
ComponentAccessor
for static access instead. Since v5.2.Copyright © 2002-2015 Atlassian. All Rights Reserved.