com.atlassian.jira
Class ManagerFactory

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

public class ManagerFactory
extends Object

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

See Also:
- a more comprehensive version of this class.

Method Summary
static
<T> org.picocontainer.ComponentAdapter
addService(Class<T> clazz, T instance)
           
static ApplicationProperties getApplicationProperties()
           
static AttachmentManager getAttachmentManager()
           
static CacheManager getCacheManager()
           
static ConstantsManager getConstantsManager()
           
static CustomFieldManager getCustomFieldManager()
           
static CustomFieldValidator getCustomFieldValidator()
           
static FieldManager getFieldManager()
           
static GlobalPermissionManager getGlobalPermissionManager()
           
static IndexLifecycleManager getIndexLifecycleManager()
           
static IssueIndexManager getIndexManager()
           
static IssueManager getIssueManager()
           
static IssueSecurityLevelManager getIssueSecurityLevelManager()
           
static IssueSecuritySchemeManager getIssueSecuritySchemeManager()
           
static SecurityTypeManager getIssueSecurityTypeManager()
           
static JiraLocaleUtils getJiraLocaleUtils()
           
static ListenerManager getListenerManager()
           
static com.atlassian.mail.queue.MailQueue getMailQueue()
           
static MailThreadManager getMailThreadManager()
           
static NotificationSchemeManager getNotificationSchemeManager()
           
static NotificationTypeManager getNotificationTypeManager()
           
static XMLObjectConfigurationFactory getObjectConfigurationFactory()
           
static OptionsManager getOptionsManager()
           
static OutlookDateManager getOutlookDateManager()
           
static PermissionManager getPermissionManager()
           
static PermissionSchemeManager getPermissionSchemeManager()
           
static PermissionTypeManager getPermissionTypeManager()
           
static ProjectManager getProjectManager()
           
static org.quartz.Scheduler getScheduler()
           
static SearchRequestManager getSearchRequestManager()
           
static ServiceManager getServiceManager()
           
static SimpleBeanFactory getSimpleBeanFactory()
           
static SubscriptionManager getSubscriptionManager()
           
static UpgradeManager getUpgradeManager()
           
static com.atlassian.velocity.VelocityManager getVelocityManager()
           
static WorkflowManager getWorkflowManager()
           
static WorkflowSchemeManager getWorkflowSchemeManager()
           
static void globalRefresh()
          This should *never* be called, except in tests, or if you are importing or seting up for the first time.
static void initialise()
          This method resets the registry.
static void quickRefresh()
          This method will refresh all the caches in JIRA (hopefully! :)) This method should *only* be called by tests
static void refreshIssueManager()
           
static void refreshUpgradeManager()
          Create a new UpgradeManager.
static void removeService(Class<?> clazz)
           
 
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()
This method will refresh all the caches in JIRA (hopefully! :)) This method should *only* be called by tests


globalRefresh

public static void globalRefresh()
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

public static <T> org.picocontainer.ComponentAdapter addService(Class<T> clazz,
                                                                T instance)

removeService

public static void removeService(Class<?> clazz)

initialise

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


refreshIssueManager

public static void refreshIssueManager()

refreshUpgradeManager

public static void refreshUpgradeManager()
Create a new UpgradeManager. This may be needed if more upgrade tasks are added, or if the license has been changed.


getApplicationProperties

public static ApplicationProperties getApplicationProperties()

getAttachmentManager

public static AttachmentManager getAttachmentManager()

getCacheManager

public static CacheManager getCacheManager()

getConstantsManager

public static ConstantsManager getConstantsManager()

getCustomFieldManager

public static CustomFieldManager getCustomFieldManager()

getFieldManager

public static FieldManager getFieldManager()

getIndexLifecycleManager

public static IndexLifecycleManager getIndexLifecycleManager()

getIndexManager

public static IssueIndexManager getIndexManager()

getIssueManager

public static IssueManager getIssueManager()

getIssueSecuritySchemeManager

public static IssueSecuritySchemeManager getIssueSecuritySchemeManager()

getIssueSecurityTypeManager

public static SecurityTypeManager getIssueSecurityTypeManager()

getListenerManager

public static ListenerManager getListenerManager()

getMailQueue

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

getNotificationSchemeManager

public static NotificationSchemeManager getNotificationSchemeManager()

getNotificationTypeManager

public static NotificationTypeManager getNotificationTypeManager()

getObjectConfigurationFactory

public static XMLObjectConfigurationFactory getObjectConfigurationFactory()

getPermissionManager

public static PermissionManager getPermissionManager()

getPermissionSchemeManager

public static PermissionSchemeManager getPermissionSchemeManager()

getPermissionTypeManager

public static PermissionTypeManager getPermissionTypeManager()

getProjectManager

public static ProjectManager getProjectManager()

getScheduler

public static org.quartz.Scheduler getScheduler()

getIssueSecurityLevelManager

public static IssueSecurityLevelManager getIssueSecurityLevelManager()

getSearchRequestManager

public static SearchRequestManager getSearchRequestManager()

getServiceManager

public static ServiceManager getServiceManager()

getSubscriptionManager

public static SubscriptionManager getSubscriptionManager()

getUpgradeManager

public static UpgradeManager getUpgradeManager()

getGlobalPermissionManager

public static GlobalPermissionManager getGlobalPermissionManager()

getVelocityManager

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

getSimpleBeanFactory

public static SimpleBeanFactory getSimpleBeanFactory()

getOutlookDateManager

public static OutlookDateManager getOutlookDateManager()

getWorkflowManager

public static WorkflowManager getWorkflowManager()

getJiraLocaleUtils

public static JiraLocaleUtils getJiraLocaleUtils()

getMailThreadManager

public static MailThreadManager getMailThreadManager()

getWorkflowSchemeManager

public static WorkflowSchemeManager getWorkflowSchemeManager()

getOptionsManager

public static OptionsManager getOptionsManager()

getCustomFieldValidator

public static CustomFieldValidator getCustomFieldValidator()


Copyright © 2002-2009 Atlassian. All Rights Reserved.