|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.component.ComponentAccessor
public class ComponentAccessor
Provides static methods for accessing JIRA's managed components (ie the components in the PicoContainer).
Normally developers should get the dependencies injected into the constructor of the calling class via Pico, however this utility provides access for when that is impossible (eg to escape from a circular dependency).
| Nested Class Summary | |
|---|---|
static interface |
ComponentAccessor.Worker
|
| Constructor Summary | |
|---|---|
ComponentAccessor()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentAccessor()
| Method Detail |
|---|
public static <T> T getComponent(Class<T> componentClass)
In practise, this is the same as getComponentOfType(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 Container. That is, it retrieves core components and components declared in Plugins1 plugins, but not components declared in Plugins2 plugins.
componentClass - class to find a component instance by
getComponentOfType(Class)public static <T> T getComponentOfType(Class<T> componentClass)
First it tries to find the component using the given Class as a key (like getComponent(Class)),
however, if this fails then it will try to find a unique component that implements/extends the given Class.
This seems unlikely to be useful, but is included for now, for completeness and backward compatibility.
Please note that this method only gets components from JIRA's core Pico Container. That is, it retrieves core components and components declared in Plugins1 plugins, but not components declared in Plugins2 plugins.
componentClass - class to find a component instance by
getComponent(Class)public static ProjectManager getProjectManager()
public static ApplicationProperties getApplicationProperties()
public static JiraAuthenticationContext getJiraAuthenticationContext()
public static ConstantsManager getConstantsManager()
public static VelocityManager getVelocityManager()
public static I18nHelper.BeanFactory getI18nHelperFactory()
public static FieldAccessor getFieldAccessor()
public static IssueManager getIssueManager()
public static AttachmentManager getAttachmentManager()
public static UserManager getUserManager()
public static PermissionManager getPermissionManager()
public static PermissionContextFactory getPermissionContextFactory()
public static CustomFieldManager getCustomFieldManager()
public static UserUtil getUserUtil()
public static GroupManager getGroupManager()
public static EventTypeManager getEventTypeManager()
public static WorkflowManager getWorkflowManager()
public static IssueFactory getIssueFactory()
public static VersionManager getVersionManager()
public static CommentManager getCommentManager()
public static MailThreadManager getMailThreadManager()
public static BulkOperationManager getBulkOperationManager()
public static MoveSubTaskOperationManager getMoveSubTaskOperationManager()
public static WorklogManager getWorklogManager()
public static ProjectFactory getProjectFactory()
public static IssueTypeSchemeManager getIssueTypeSchemeManager()
public static SubTaskManager getSubTaskManager()
public static TrackbackManager getTrackbackManager()
public static com.atlassian.crowd.embedded.api.CrowdService getCrowdService()
public static FieldLayoutManager getFieldLayoutManager()
public static ColumnLayoutManager getColumnLayoutManager()
public static VoteManager getVoteManager()
public static com.atlassian.plugin.PluginAccessor getPluginAccessor()
public static com.atlassian.plugin.event.PluginEventManager getPluginEventManager()
public static com.atlassian.plugin.PluginController getPluginController()
public static FieldScreenRendererFactory getFieldScreenRendererFactory()
public static WorkflowSchemeManager getWorkflowSchemeManager()
public static IssueService getIssueService()
public static IndexPathManager getIndexPathManager()
public static AttachmentPathManager getAttachmentPathManager()
public static TranslationManager getTranslationManager()
public static WatcherManager getWatcherManager()
public static FieldScreenManager getFieldScreenManager()
public static com.atlassian.mail.server.MailServerManager getMailServerManager()
public static ProjectComponentManager getProjectComponentManager()
public static ChangeHistoryManager getChangeHistoryManager()
ChangeHistoryManager manager instance
public static UserPreferencesManager getUserPreferencesManager()
public static UserPropertyManager getUserPropertyManager()
public static AvatarManager getAvatarManager()
public static com.atlassian.mail.queue.MailQueue getMailQueue()
public static NotificationSchemeManager getNotificationSchemeManager()
public static PermissionSchemeManager getPermissionSchemeManager()
public static org.quartz.Scheduler getScheduler()
public static IssueSecurityLevelManager getIssueSecurityLevelManager()
public static ServiceManager getServiceManager()
public static SubscriptionManager getSubscriptionManager()
public static LocaleManager getLocaleManager()
public static OptionsManager getOptionsManager()
public static ComponentAccessor.Worker initialiseWorker(ComponentAccessor.Worker componentAccessorWorker)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||