Package org.soybeanMilk.example.spring.org.springframework.web.context

Examples of org.soybeanMilk.example.spring.org.springframework.web.context.WebApplicationContext


  public void contextInitialized(ServletContextEvent event)
  {
    ResolverObjectFactory rof=null;
   
    ServletContext servletContext=event.getServletContext();
    final WebApplicationContext springContext=WebApplicationContextUtils.getWebApplicationContext(servletContext);
   
    if(springContext != null)
    {
      rof=new ResolverObjectFactory()
      {
        public Object getResolverObject(Serializable resolverObjectId)
        {
          String name=(resolverObjectId instanceof String ? (String)resolverObjectId : resolverObjectId.toString());
         
          if(springContext.containsBean(name))
            return springContext.getBeans(name);
          else
            return null;
        }
       
        public void addResolverObject(Serializable resolverObjectId, Object resolverObject){}
View Full Code Here

TOP

Related Classes of org.soybeanMilk.example.spring.org.springframework.web.context.WebApplicationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.