Class NamedBeanContextItemProvider
- java.lang.Object
-
- com.atlassian.confluence.setup.velocity.NamedBeanContextItemProvider
-
- All Implemented Interfaces:
VelocityContextItemProvider,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public final class NamedBeanContextItemProvider extends Object implements org.springframework.context.ApplicationContextAware, VelocityContextItemProvider
Context map provider which will construct a bean name to bean reference map from the configured bean names and return this singleton map for every invocation ofgetContextMap()
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.setup.velocity.VelocityContextItemProvider
VelocityContextItemProvider.VelocityContextItemKeys
-
-
Constructor Summary
Constructors Constructor Description NamedBeanContextItemProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getContextMap()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetBeanNames(String[] beanNames)
-
-
-
Method Detail
-
getContextMap
public Map<String,Object> getContextMap()
- Specified by:
getContextMapin interfaceVelocityContextItemProvider- Returns:
- A map of values to be used within a Velocity
Context. Must not be null
-
setBeanNames
public void setBeanNames(String[] beanNames)
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
-