Class ServletContextBeanInjector

java.lang.Object
net.solarnetwork.web.support.ServletContextBeanInjector
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.web.context.ServletContextAware

public class ServletContextBeanInjector extends Object implements org.springframework.web.context.ServletContextAware
Helper class to inject beans into a ServletContext.
Version:
1.0
Author:
matt
  • Constructor Details

    • ServletContextBeanInjector

      public ServletContextBeanInjector()
  • Method Details

    • setServletContext

      public void setServletContext(javax.servlet.ServletContext servletContext)
      Specified by:
      setServletContext in interface org.springframework.web.context.ServletContextAware
    • init

      public void init()
      Initialize the ServletContext.
    • getBeans

      public Map<String,Object> getBeans()
      Get the beans.
      Returns:
      the beans
    • setBeans

      public void setBeans(Map<String,Object> beans)
      Set the beans.
      Parameters:
      beans - the beans to set