+1

Pat - I agree with everything you've said here. We're pushing 
something very similar on my project. I have to admit, I picked 
up the idea from Rod Johnson's J2EE Design book. He has a 
configuration framework that works almost identically to this. 
The config framework is the container, and the objects it 
configures only need to expose JavaBean setXxx methods in order 
for them to be configured. 

The possibilities of how to use this are endless. I actually 
wrote a WebWork ActionFactory class to use this config 
framework for my classloading (instead of the regular 
JavaActionFactory). It also makes objects a lot easier to test, 
since you can provide a test harness that acts as a container 
and simulate real data with that.

Rob

> Basically, the idea is that an external service should manage 
resources and
> components. It's called Inversion of Control, and what the 
end result is
> that instead of your action code actively going out and 
getting a resource
> or component, the container (XWork) passively pushes the 
resource (via
> setXxx methods) to the action or any other object.
> 


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to