Package org.araneaframework.servlet

Examples of org.araneaframework.servlet.ServletServiceAdapterComponent


  private BeanFactory factory;
 
  protected ServletServiceAdapterComponent buildRootComponent() {
    ClassPathResource resource = new ClassPathResource(beansFile);
    factory = new XmlBeanFactory(resource)
    ServletServiceAdapterComponent adapter =
      (ServletServiceAdapterComponent)factory.getBean("servletServiceAdapterComponent");
    builtComponent = adapter;
    return adapter;
  }
View Full Code Here


    String araneaRoot = DEFAULT_ARANEA_ROOT;
   
    if (getServletConfig().getInitParameter(ARANEA_ROOT_INIT_PARAMETER_NAME) != null)
      araneaRoot = getServletConfig().getInitParameter(ARANEA_ROOT_INIT_PARAMETER_NAME);
   
    ServletServiceAdapterComponent adapter =
      (ServletServiceAdapterComponent) beanFactory.getBean(araneaRoot);
    return adapter;
  }
View Full Code Here

   
    if (servlet == null ) {
      servlet  = new MockServlet();
    }
   
    ServletServiceAdapterComponent comp =
      (ServletServiceAdapterComponent)initedAdapters.get(configFile);
   
    if (comp == null) {
      servlet.setConfFile(configFile);
      servlet.init(new MockServletConfig(new MockServletContext()));
View Full Code Here

TOP

Related Classes of org.araneaframework.servlet.ServletServiceAdapterComponent

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.