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

后端 未结 1 1959
后悔当初
后悔当初 2021-01-26 08:04

Can any one please describe me when the objects of ActionMapper, ActionProxy, ActionInvocation

相关标签:
1条回答
  • 2021-01-26 08:53

    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.

    0 讨论(0)
提交回复
热议问题