com.atlassian.confluence.util.i18n
Class UserI18NBeanFactory

java.lang.Object
  extended by com.atlassian.confluence.util.i18n.UserI18NBeanFactory
All Implemented Interfaces:
I18NBeanFactory

public class UserI18NBeanFactory
extends java.lang.Object
implements I18NBeanFactory

I18N bean factory which will return an I18N bean configured for the current user's locale. Also acts as a BeanPostProcessor for Spring bean factories, processing beans which implement UserLocaleAware

See Also:
AuthenticatedUserThreadLocal, LocaleManager.getLocale(com.atlassian.user.User)

Constructor Summary
UserI18NBeanFactory()
           
 
Method Summary
 I18NBean getI18NBean()
           
 I18NBean getI18NBean(java.util.Locale locale)
           
 void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
           
 void setLocaleManager(LocaleManager localeManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserI18NBeanFactory

public UserI18NBeanFactory()
Method Detail

getI18NBean

public I18NBean getI18NBean(java.util.Locale locale)
Specified by:
getI18NBean in interface I18NBeanFactory
Parameters:
locale - locale for i18n
Returns:
i18n bean for specified locale

getI18NBean

public I18NBean getI18NBean()
Specified by:
getI18NBean in interface I18NBeanFactory
Returns:
i18n bean for the system default locale

setI18NBeanFactory

public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)

setLocaleManager

public void setLocaleManager(LocaleManager localeManager)


Copyright © 2003-2011 Atlassian. All Rights Reserved.