Scopes of ActionMapper, ActionProxy, ActionInvocation, ActionContext objects in Struts2?

孤街浪徒 提交于 2019-12-02 08:06:56

The ActionMapper is created on startup, it has a singleton scope.

The ActionContext is created by the Dispatcher in preparing an action to execute, it's ThreadLocal, and it doesn't have any scope.

When action is executing the ActionInvocation and ActionProxy are created that also don't have a scope.

You can see this on a big picture of Struts2 architecture.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!