com.atlassian.jira.component
Class ComponentAccessor

java.lang.Object
  extended by com.atlassian.jira.component.ComponentAccessor

public class ComponentAccessor
extends Object

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).

Since:
v4.3

Nested Class Summary
static interface ComponentAccessor.Worker
           
 
Constructor Summary
ComponentAccessor()
           
 
Method Summary
static ApplicationProperties getApplicationProperties()
           
static
<T> T
getComponentOfType(Class<T> componentClass)
           
static ConstantsManager getConstantsManager()
           
static FieldAccessor getFieldAccessor()
           
static I18nHelper.BeanFactory getI18nHelperFactory()
           
static JiraAuthenticationContext getJiraAuthenticationContext()
           
static UserPropertyManager getUserPropertyManager()
           
static com.atlassian.velocity.VelocityManager getVelocityManager()
           
static void initialiseWorker(ComponentAccessor.Worker componentAccessorWorker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentAccessor

public ComponentAccessor()
Method Detail

getApplicationProperties

public static ApplicationProperties getApplicationProperties()

getJiraAuthenticationContext

public static JiraAuthenticationContext getJiraAuthenticationContext()

getConstantsManager

public static ConstantsManager getConstantsManager()

getUserPropertyManager

public static UserPropertyManager getUserPropertyManager()

getVelocityManager

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

getI18nHelperFactory

public static I18nHelper.BeanFactory getI18nHelperFactory()

getFieldAccessor

public static FieldAccessor getFieldAccessor()

getComponentOfType

public static <T> T getComponentOfType(Class<T> componentClass)

initialiseWorker

public static void initialiseWorker(ComponentAccessor.Worker componentAccessorWorker)


Copyright © 2002-2011 Atlassian. All Rights Reserved.