public class ConfigBeanFactory extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware
| Constructor and Description |
|---|
ConfigBeanFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.extensions.config.RemoteConfigElement |
getRemoteConfig()
A factory method made available to Spring to generate a
RemoteConfigElement Spring Bean |
org.springframework.extensions.webscripts.ScriptConfigModel |
getScriptConfigModel()
Instantiates an returns a new
ScriptConfigModel using the ConfigService provided by the
Spring framework. |
freemarker.ext.servlet.ServletContextHashModel |
getServletContextHashModel()
Instantiates a new instance of
ServletContextHashModel. |
freemarker.ext.jsp.TaglibFactory |
getTabLibFactory()
Instantiates and returns a new
TagLibFactory using the ServletContext supplied by the
Spring Framework because this class implements the ServetContextAware interface. |
org.springframework.extensions.webscripts.TemplateConfigModel |
getTemplateConfigModel()
Instantiates an returns a new
TemplateConfigModel using the ConfigService provided by the
Spring framework. |
UserFactory |
getUserFactory()
Gets the UserFactory defined in the WebFrameworkConfigElement (return by the
getWebFrameworkConfig method. |
WebFrameworkConfigElement |
getWebFrameworkConfig()
A factory method made available to Spring to generate a
WebFrameworkConfigElement Spring Bean |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
This method is provided so that the Spring Framework can set the
ApplicationContext required to
obtain a UserFactory |
void |
setConfigService(org.springframework.extensions.config.ConfigService configService)
This method is provided so that the Spring Framework can set the
ConfigService required to
obtain the RemoteConfigElement and WebFrameworkConfigElement. |
void |
setServletContext(javax.servlet.ServletContext servletContext)
This method is provided so that the Spring Framework can set the
ServletContext required to instantiate a
TagLibFactory |
public void setConfigService(org.springframework.extensions.config.ConfigService configService)
This method is provided so that the Spring Framework can set the ConfigService required to
obtain the RemoteConfigElement and WebFrameworkConfigElement.
configService - ConfigServicepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
This method is provided so that the Spring Framework can set the ApplicationContext required to
obtain a UserFactory
setApplicationContext in interface org.springframework.context.ApplicationContextAwareapplicationContext - ApplicationContextpublic void setServletContext(javax.servlet.ServletContext servletContext)
This method is provided so that the Spring Framework can set the ServletContext required to instantiate a
TagLibFactory
setServletContext in interface org.springframework.web.context.ServletContextAwareservletContext - ServletContextpublic org.springframework.extensions.config.RemoteConfigElement getRemoteConfig()
A factory method made available to Spring to generate a RemoteConfigElement Spring Bean
ConfigServicepublic WebFrameworkConfigElement getWebFrameworkConfig()
A factory method made available to Spring to generate a WebFrameworkConfigElement Spring Bean
ConfigServicepublic UserFactory getUserFactory()
Gets the UserFactory defined in the WebFrameworkConfigElement (return by the getWebFrameworkConfig method.
If a UserFactory has not been defined in the configuration element then a new instance of DefaultUserFactory
will be returned.
UserFactorypublic freemarker.ext.jsp.TaglibFactory getTabLibFactory()
Instantiates and returns a new TagLibFactory using the ServletContext supplied by the
Spring Framework because this class implements the ServetContextAware interface.
TagLibFactorypublic org.springframework.extensions.webscripts.ScriptConfigModel getScriptConfigModel()
Instantiates an returns a new ScriptConfigModel using the ConfigService provided by the
Spring framework. This allows the ScriptConfigModel to be defined as a Spring Bean that is a dependency of the
ProcessorModelHelper Spring bean.
ScriptConfigModelpublic org.springframework.extensions.webscripts.TemplateConfigModel getTemplateConfigModel()
Instantiates an returns a new TemplateConfigModel using the ConfigService provided by the
Spring framework. This allows the TemplateConfigModel to be defined as a Spring Bean that is a dependency of the
ProcessorModelHelper Spring bean.
ScriptConfigModelpublic freemarker.ext.servlet.ServletContextHashModel getServletContextHashModel()
Instantiates a new instance of ServletContextHashModel.
Copyright © 2005–2016 Alfresco Software. All rights reserved.