com.atlassian.confluence.setup.velocity
Class NamedBeanContextItemProvider
java.lang.Object
com.atlassian.confluence.setup.velocity.NamedBeanContextItemProvider
- All Implemented Interfaces:
- VelocityContextItemProvider, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
public final class NamedBeanContextItemProvider
- extends Object
- implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, 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 of getContextMap()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedBeanContextItemProvider
public NamedBeanContextItemProvider()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
getContextMap
public Map getContextMap()
- Specified by:
getContextMap
in interface VelocityContextItemProvider
- 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 interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException