com.atlassian.jira
Class ManagerFactory

java.lang.Object
  extended by com.atlassian.jira.ManagerFactory

Deprecated. Use ComponentAccessor instead. Since v4.4.

public class ManagerFactory
extends Object

Provides static methods for obtaining 'Manager' classes, though which much of JIRA's functionality is exposed.


Method Summary
static
<T> org.picocontainer.ComponentAdapter
addService(Class<T> clazz, T instance)
          Deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.
static ApplicationProperties getApplicationProperties()
          Deprecated. 
static AttachmentManager getAttachmentManager()
          Deprecated. 
static ConstantsManager getConstantsManager()
          Deprecated. 
static CustomFieldManager getCustomFieldManager()
          Deprecated. 
static CustomFieldValidator getCustomFieldValidator()
          Deprecated. 
static FieldManager getFieldManager()
          Deprecated. 
static GlobalPermissionManager getGlobalPermissionManager()
          Deprecated. 
static GroupManager getGroupManager()
          Deprecated. 
static IndexLifecycleManager getIndexLifecycleManager()
          Deprecated. 
static IssueIndexManager getIndexManager()
          Deprecated. 
static IssueManager getIssueManager()
          Deprecated. 
static IssueSecurityLevelManager getIssueSecurityLevelManager()
          Deprecated. 
static IssueSecuritySchemeManager getIssueSecuritySchemeManager()
          Deprecated. 
static SecurityTypeManager getIssueSecurityTypeManager()
          Deprecated. 
static JiraLocaleUtils getJiraLocaleUtils()
          Deprecated. 
static ListenerManager getListenerManager()
          Deprecated. 
static LocaleManager getLocaleManager()
          Deprecated. 
static com.atlassian.mail.queue.MailQueue getMailQueue()
          Deprecated. 
static MailThreadManager getMailThreadManager()
          Deprecated. Use ComponentAccessor.getMailThreadManager() instead. Since v4.4.
static NotificationSchemeManager getNotificationSchemeManager()
          Deprecated. 
static NotificationTypeManager getNotificationTypeManager()
          Deprecated. 
static XMLObjectConfigurationFactory getObjectConfigurationFactory()
          Deprecated. 
static OptionsManager getOptionsManager()
          Deprecated. 
static OutlookDateManager getOutlookDateManager()
          Deprecated. 
static PermissionManager getPermissionManager()
          Deprecated. 
static PermissionSchemeManager getPermissionSchemeManager()
          Deprecated. 
static PermissionTypeManager getPermissionTypeManager()
          Deprecated. 
static ProjectManager getProjectManager()
          Deprecated. 
static org.quartz.Scheduler getScheduler()
          Deprecated. 
static SearchRequestManager getSearchRequestManager()
          Deprecated. 
static ServiceManager getServiceManager()
          Deprecated. 
static SubscriptionManager getSubscriptionManager()
          Deprecated. 
static UpgradeManager getUpgradeManager()
          Deprecated. 
static UserManager getUserManager()
          Deprecated. 
static UserPropertyManager getUserPropertyManager()
          Deprecated. 
static com.atlassian.velocity.VelocityManager getVelocityManager()
          Deprecated. 
static WorkflowManager getWorkflowManager()
          Deprecated. 
static WorkflowSchemeManager getWorkflowSchemeManager()
          Deprecated. 
static void globalRefresh()
          Deprecated. This should *never* be called, except in tests, or if you are importing or seting up for the first time.
static void initialise()
          Deprecated. This method resets the registry.
static void quickRefresh()
          Deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.
static void quickRefresh(IssueIndexManager indexManager)
          Deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.
static void refreshIssueManager()
          Deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.
static void refreshUpgradeManager()
          Deprecated. Use ComponentManager.refreshUpgradeManager() instead. That method is as nasty as this one.
static void removeService(Class<?> clazz)
          Deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

quickRefresh

public static void quickRefresh()
Deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.

This method will refresh all the caches in JIRA (hopefully! :)) This method should not be called by anyone


quickRefresh

@Deprecated
public static void quickRefresh(IssueIndexManager indexManager)
Deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.

This method will refresh all the caches in JIRA (hopefully! :)) This method should not be called by anyone


globalRefresh

public static void globalRefresh()
Deprecated. 
This should *never* be called, except in tests, or if you are importing or seting up for the first time. The reason this is called is to ensure that all the managers are reinitialised after the license has changed.

Note: Make sure the scheduler is shutdown


addService

@Deprecated
public static <T> org.picocontainer.ComponentAdapter addService(Class<T> clazz,
                                                                           T instance)
Deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.


removeService

@Deprecated
public static void removeService(Class<?> clazz)
Deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.


initialise

public static void initialise()
Deprecated. 
This method resets the registry.


refreshIssueManager

@Deprecated
public static void refreshIssueManager()
Deprecated. This shit is only being used in "unit" tests that extend from LegacyJiraMockTestCase, don't use this anymore. Please write your unit tests using mocks.


refreshUpgradeManager

@Deprecated
public static void refreshUpgradeManager()
Deprecated. Use ComponentManager.refreshUpgradeManager() instead. That method is as nasty as this one.

Create a new UpgradeManager. This may be needed if more upgrade tasks are added, or if the license has been changed.


getApplicationProperties

@Deprecated
public static ApplicationProperties getApplicationProperties()
Deprecated. 


getAttachmentManager

@Deprecated
public static AttachmentManager getAttachmentManager()
Deprecated. 


getConstantsManager

@Deprecated
public static ConstantsManager getConstantsManager()
Deprecated. 


getCustomFieldManager

@Deprecated
public static CustomFieldManager getCustomFieldManager()
Deprecated. 


getFieldManager

@Deprecated
public static FieldManager getFieldManager()
Deprecated. 


getIndexLifecycleManager

@Deprecated
public static IndexLifecycleManager getIndexLifecycleManager()
Deprecated. 


getIndexManager

@Deprecated
public static IssueIndexManager getIndexManager()
Deprecated. 


getIssueManager

@Deprecated
public static IssueManager getIssueManager()
Deprecated. 


getIssueSecuritySchemeManager

@Deprecated
public static IssueSecuritySchemeManager getIssueSecuritySchemeManager()
Deprecated. 


getIssueSecurityTypeManager

@Deprecated
public static SecurityTypeManager getIssueSecurityTypeManager()
Deprecated. 


getListenerManager

@Deprecated
public static ListenerManager getListenerManager()
Deprecated. 


getMailQueue

@Deprecated
public static com.atlassian.mail.queue.MailQueue getMailQueue()
Deprecated. 


getNotificationSchemeManager

@Deprecated
public static NotificationSchemeManager getNotificationSchemeManager()
Deprecated. 


getNotificationTypeManager

@Deprecated
public static NotificationTypeManager getNotificationTypeManager()
Deprecated. 


getObjectConfigurationFactory

@Deprecated
public static XMLObjectConfigurationFactory getObjectConfigurationFactory()
Deprecated. 


getPermissionManager

@Deprecated
public static PermissionManager getPermissionManager()
Deprecated. 


getPermissionSchemeManager

@Deprecated
public static PermissionSchemeManager getPermissionSchemeManager()
Deprecated. 


getPermissionTypeManager

@Deprecated
public static PermissionTypeManager getPermissionTypeManager()
Deprecated. 


getProjectManager

@Deprecated
public static ProjectManager getProjectManager()
Deprecated. 


getScheduler

@Deprecated
public static org.quartz.Scheduler getScheduler()
Deprecated. 


getIssueSecurityLevelManager

@Deprecated
public static IssueSecurityLevelManager getIssueSecurityLevelManager()
Deprecated. 


getSearchRequestManager

@Deprecated
public static SearchRequestManager getSearchRequestManager()
Deprecated. 


getServiceManager

@Deprecated
public static ServiceManager getServiceManager()
Deprecated. 


getSubscriptionManager

@Deprecated
public static SubscriptionManager getSubscriptionManager()
Deprecated. 


getUpgradeManager

@Deprecated
public static UpgradeManager getUpgradeManager()
Deprecated. 


getGlobalPermissionManager

@Deprecated
public static GlobalPermissionManager getGlobalPermissionManager()
Deprecated. 


getVelocityManager

@Deprecated
public static com.atlassian.velocity.VelocityManager getVelocityManager()
Deprecated. 


getOutlookDateManager

@Deprecated
public static OutlookDateManager getOutlookDateManager()
Deprecated. 


getWorkflowManager

@Deprecated
public static WorkflowManager getWorkflowManager()
Deprecated. 


getLocaleManager

@Deprecated
public static LocaleManager getLocaleManager()
Deprecated. 


getJiraLocaleUtils

@Deprecated
public static JiraLocaleUtils getJiraLocaleUtils()
Deprecated. 


getMailThreadManager

@Deprecated
public static MailThreadManager getMailThreadManager()
Deprecated. Use ComponentAccessor.getMailThreadManager() instead. Since v4.4.

Returns:
MailThreadManager

getWorkflowSchemeManager

@Deprecated
public static WorkflowSchemeManager getWorkflowSchemeManager()
Deprecated. 


getOptionsManager

@Deprecated
public static OptionsManager getOptionsManager()
Deprecated. 


getCustomFieldValidator

@Deprecated
public static CustomFieldValidator getCustomFieldValidator()
Deprecated. 


getUserManager

@Deprecated
public static UserManager getUserManager()
Deprecated. 


getGroupManager

@Deprecated
public static GroupManager getGroupManager()
Deprecated. 


getUserPropertyManager

@Deprecated
public static UserPropertyManager getUserPropertyManager()
Deprecated. 



Copyright © 2002-2011 Atlassian. All Rights Reserved.