[Logo] Mentawai Forum - Mentawai Web Framework
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 

Forum Read-Only! Check the new site and forum here!

Attaching a different pojo to each action  XML
Forum Index -> General Comments
Author Message
logicalusman



Joined: 11/02/2010 06:19:51
Messages: 5
Offline

I read the articles on DI and IOC. I like the idea of POJO injection etc.
I have configured different Actions into my project. Each Action acts a standalone unit to process the input params and return a json string.

Is it possible to register a different pojo to each action? This pojo will maintain a different state or will be (possibly) a different object depending on the action. For example each action/module maintains a different cache. So to configure/attach the appropriate cache object to the request before its action is called.

Anyone can guide or show me how it can be acheived in Mentwai?

thanks.

saoj



Joined: 01/07/2005 09:59:17
Messages: 2846
Location: Rio de Janeiro, RJ
Offline

IOC is only invoked when the action needs the POJO.

So each action can request its appropriate POJO and it will be injected.

Not sure I understood your question... What is the problem you are trying to solve?

Sergio Oliveira

 
Forum Index -> General Comments
Go to:   
Powered by JForum 2.1.6 © JForum Team