Class ServletContextAttributesBootstrap
java.lang.Object
org.craftercms.engine.util.servlet.ServletContextAttributesBootstrap
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.web.context.ServletContextAware
public class ServletContextAttributesBootstrap
extends Object
implements org.springframework.web.context.ServletContextAware, org.springframework.beans.factory.InitializingBean
A simple class that adds a bunch of attributes passed as a property to the current servlet context.
- Author:
- avasquez
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setAttributes
(Map<String, Object> attributes) void
setServletContext
(javax.servlet.ServletContext servletContext)
-
Constructor Details
-
ServletContextAttributesBootstrap
public ServletContextAttributesBootstrap()
-
-
Method Details
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext) - Specified by:
setServletContext
in interfaceorg.springframework.web.context.ServletContextAware
-
setAttributes
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-