public final class

PrototypeBeanContextItemProvider

extends Object
implements VelocityContextItemProvider ApplicationContextAware
java.lang.Object
   ↳ com.atlassian.confluence.setup.velocity.PrototypeBeanContextItemProvider

Class Overview

Looks up the named bean each time in the application context before setting it in the Velocity context. This is suitable for use with prototype beans that change based on the user, like "i18n" and "jsonator".

Summary

Public Constructors
PrototypeBeanContextItemProvider()
Public Methods
Map<StringObject> getContextMap()
void setApplicationContext(ApplicationContext applicationContext)
void setContextKeyToBeanNameMapping(Map<StringString> contextKeyToBeanName)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.setup.velocity.VelocityContextItemProvider
From interface org.springframework.context.ApplicationContextAware

Public Constructors

public PrototypeBeanContextItemProvider ()

Public Methods

public Map<StringObject> getContextMap ()

public void setApplicationContext (ApplicationContext applicationContext)

Throws
BeansException

public void setContextKeyToBeanNameMapping (Map<StringString> contextKeyToBeanName)