-
Notifications
You must be signed in to change notification settings - Fork 5
Sothis.mvc概述
velna edited this page Jul 17, 2012
·
1 revision
Sothis MVC是一套基于“约定优于配置”的框架,但也并不是说你在sothis里完全无法进行配置,在一些特定的场合,你也可以通过配置来解决一些问题
- 核心组件:
-
org.sothis.web.mvc.ActionMapper
负责完成请求url到action的映射,想要个性的url?实现你自己的ActionMapper -
org.sothis.web.mvc.ModelAndViewResolver
负责将action的执行结果解析到正确的view中去 -
org.sothis.web.mvc.View
html, json, xml, jsp, freemarker, velocity都可以 -
org.sothis.web.mvc.Interceptor
和struts2的Interceptor是一个东东 -
org.sothis.web.mvc.ServletBeanFactory
所有sothis要用的bean都通过它来生产 -
org.sothis.web.mvc.ActionContext
和struts2的ActionContext是一个东东 -
org.sothis.web.mvc.ActionInvocation
呃。。这个也和struts2里的差不多 -
org.sothis.web.mvc.Controller
controller的封装,可以方便地对controller进行操作,单例的哦 -
org.sothis.web.mvc.Action
action的封装,可以方便地对action进行操作,单例的哦 -
org.sothis.web.mvc.ModelAndView
action执行的结果最终都会被封装成这个接口,然后再在sothis内部进行流转 -
org.sothis.web.mvc.SothisConfig
sothis的所有配置都在这里存着
-
org.sothis.web.mvc.ActionMapper