IoC (and interceptors for that matter) are just one way to skin a cat. You could of course use ActionContext.getContext().getSession() just the same.
What do you mean “manage the IoC container”?
-----Original Message-----
If you have a group of actions, lets call this a function, that act on data that needs to be persisted during the length of a session, the most obvious way for me to handle this behavior is by creating a component and corresponding enabler interface for each function (group of actions) and having each action in the group implement the enabler. However, in a complex application, or a group of applications running in the same context, the number of such interfaces could get out of hand. Are there alternative ways present in Webwork to handle such need? Action flow?
Are interceptors an alternative?
As a separate issue, can interceptors manage the IoC container?
Thanks for input.
|
- [OS-webwork] Data spanning several actions and req-resp ... Sergio Infante
- RE: [OS-webwork] Data spanning several actions and ... Patrick Lightbody
- RE: [OS-webwork] Data spanning several actions and ... Jason Carreira