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 java.lang.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()
           
 java.util.Map<java.lang.String,java.lang.Object> getContextMap()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setBeanNames(java.lang.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 java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

getContextMap

public java.util.Map<java.lang.String,java.lang.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(java.lang.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-2014 Atlassian. All Rights Reserved.