Hello David,

Friday, July 20, 2001, 7:17:08 PM, you wrote:

DW> What is the status of having something to load a
DW> service in Struts?  If it is going to be a while, I
DW> would suggest at least adding something that could at
DW> least handle initialization of resources that would
DW> fit in with the future plans.  I was waiting for
DW> something like this before I added the Validator so
DW> there could be an example using the service loader to
DW> initialize the Validator resources.

Service base class contains initDigester(), init() and destroy()
methods. ServiceManager call init() and destroy() for every service
and call initDigester() if service config in struts-config contains
useDigester attribute. So each Service can implement initDigester()
method to read config from single application config - struts-config.
Of course, Service developer can use its own config file and not use
common config store.

-- 
Best regards,
 Oleg                            mailto:[EMAIL PROTECTED]


Reply via email to