public class

I18nHelperComponentAdapter

extends AbstractComponentAdaptor<T>
java.lang.Object
   ↳ com.atlassian.jira.config.component.AbstractComponentAdaptor<T>
     ↳ com.atlassian.jira.util.I18nHelperComponentAdapter

Class Overview

A component adapter that creates I18nHelper proxies. Whenever a method is called on the proxy, it will call getInstance(com.atlassian.crowd.embedded.api.User) to obtain a real I18nHelper for the user that is currently logged in, and will delegate the call to the real implementation.

See Also

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.config.component.AbstractComponentAdaptor
Public Constructors
I18nHelperComponentAdapter()
Public Methods
Class<?> getComponentImplementation()
Object getComponentInstance()
void verify()
Protected Methods
I18nHelper.BeanFactory getFactoryFromContainer()
Returns an I18nHelper instance from the container.
<T> T getInstanceFromContainer(Class<T> cls)
Returns an instance from the PICO container.
[Expand]
Inherited Methods
From class com.atlassian.jira.config.component.AbstractComponentAdaptor
From class java.lang.Object
From interface org.picocontainer.ComponentAdapter

Public Constructors

public I18nHelperComponentAdapter ()

Public Methods

public Class<?> getComponentImplementation ()

public Object getComponentInstance ()

Throws
PicoInitializationException
PicoIntrospectionException

public void verify ()

Throws
UnsatisfiableDependenciesException

Protected Methods

protected I18nHelper.BeanFactory getFactoryFromContainer ()

Returns an I18nHelper instance from the container.

Returns
  • an I18nHelper

protected T getInstanceFromContainer (Class<T> cls)

Returns an instance from the PICO container.

Parameters
cls the Class to look for
Returns
  • an instance of cls