1 package jfun.yan.web; 2 3 import jfun.yan.Component; 4 import jfun.yan.xml.nuts.spring.SpringBeanNut; 5 import jfun.yan.xml.nuts.spring.SpringService; 6 16 public class WebSpringBeanNut extends SpringBeanNut { 17 private String servlet_context_property = WebUtils.DEFAULT_SERVLET_CONTEXT_PROPERTY; 18 19 public String getServlet_context_property() { 20 return servlet_context_property; 21 } 22 23 public WebSpringBeanNut(SpringService service) { 24 super(service); 25 26 } 27 28 public void setServlet_context_property(String servlet_context_name) { 29 this.servlet_context_property = servlet_context_name; 30 } 31 protected Component informAwares(Component c) { 32 return WebUtils.setPossibleServletContext(super.informAwares(c), servlet_context_property, this); 33 } 34 } 35 | Popular Tags |