com.atlassian.confluence.plugin.descriptor
Class ConfluenceVelocityModuleDescriptor

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor
      extended by com.atlassian.confluence.plugin.descriptor.ConfluenceVelocityModuleDescriptor
All Implemented Interfaces:
UserLocaleAware, com.atlassian.plugin.ModuleDescriptor, com.atlassian.plugin.Resourced
Direct Known Subclasses:
CustomMacroModuleDescriptor, XWorkModuleDescriptor

public abstract class ConfluenceVelocityModuleDescriptor
extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor
implements UserLocaleAware


Field Summary
protected  I18NBeanFactory i18NBeanFactory
           
protected  LocaleManager localeManager
          Deprecated. Use i18NBeanFactory directly
static java.lang.String RESOURCE_TYPE_I18N
           
 
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
plugin, resources, singleton
 
Constructor Summary
ConfluenceVelocityModuleDescriptor()
           
 
Method Summary
 java.lang.String getHtml(java.lang.String resourceName)
           
 java.lang.String getHtml(java.lang.String resourceName, java.util.Map startingParams)
           
 void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
           
 void setLocaleManager(LocaleManager localeManager)
           
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, destroy, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, init, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, satisfiesMinJavaVersion, setPlugin, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE_TYPE_I18N

public static final java.lang.String RESOURCE_TYPE_I18N
See Also:
Constant Field Values

i18NBeanFactory

protected I18NBeanFactory i18NBeanFactory

localeManager

protected LocaleManager localeManager
Deprecated. Use i18NBeanFactory directly
Since:
2.8
Constructor Detail

ConfluenceVelocityModuleDescriptor

public ConfluenceVelocityModuleDescriptor()
Method Detail

getHtml

public java.lang.String getHtml(java.lang.String resourceName)

getHtml

public java.lang.String getHtml(java.lang.String resourceName,
                                java.util.Map startingParams)

setI18NBeanFactory

public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
Specified by:
setI18NBeanFactory in interface UserLocaleAware
Parameters:
i18NBeanFactory - the user locale sensitive i18n bean factory

setLocaleManager

public void setLocaleManager(LocaleManager localeManager)


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.