com.atlassian.confluence.setup.velocity
Class NamedBeanContextItemProvider

java.lang.Object
  extended by 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()


Constructor Summary
NamedBeanContextItemProvider()
           
 
Method Summary
 void afterPropertiesSet()
           
 Map<String,Object> getContextMap()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setBeanNames(String[] beanNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedBeanContextItemProvider

public NamedBeanContextItemProvider()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getContextMap

public Map<String,Object> 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


Copyright © 2003-2012 Atlassian. All Rights Reserved.