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()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setBeanNames(String[] beanNames)
-
-
-
Method Detail
-
getContextMap
public Map<String,Object> getContextMap()
- Specified by:
getContextMap
in 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:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
-