Skip to content

smallprogramer/RMVC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

This is a MVC framework。RMVC is committed to support for RESTful。
RMVC support to URL request parameter, and support the concurrent requests. In a request to the operation of the multiple resources.



The flow chart is as follows:
![image](https://github.com/meelody/RMVC/blob/master/lw.1.png)

Configuration RMVC provide container interface to the user, the user can implement this interface to use their own containers.

public interface BeanFactory {
     void init();
     Object getBean(String name);
     List<Object> getControllers();
     List<Interceptor> getInterceptor();
}

public abstract class ServletContextBeanFactory implements BeanFactory{

    private final ServletContext servletContext;
    protected ApplicationContext applicationContext;

    public ServletContextBeanFactory(ServletContext servletContext){
	        this.servletContext=servletContext;
    }
    public void init() {
	    this.applicationContext =WebApplicationContextUtils.getWebApplicationContext(servletContext);
    }

}

RMVC default by the Spring IOC container containers as the default, so if using the default Settings will need to provide to the Spring under the web environment configuration contextConfigLocation /WEB-INF/applicationContext.xml org.springframework.web.context.ContextLoaderListener MVC coolraw.front.dispacher.SingleDispatcherServlet BeanFactory coolraw.beanfactory.DefaultBeanFactory 1 MVC /

RMVC implementation depends on the servlet, so need to be configured using the servlet。 The default by SingleDispatcherServlet。If you need the support of concurrency can choose ConcurrentDispatcherServlet

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%