> -----Original Message----- > From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] > Sent: Monday, June 04, 2012 7:32 > To: Struts Developers List > Subject: [struts-dev] Re: Abstract layer to access file system > > Ok, got it working, but the only problem I have is that the > all implementations provided by framework must be specified > as a FileManagerProvider with Dispatcher class or all the > classes (implementations of FileManager interface) have to be > defined in > XWork2 and added to DefaultConfiguration class (where > bootstrap container is created). > > I don't know which option is best.
When I started dealing with this last year I concluded the following: 1: use the classloader as much as possible as it always works. 2: the plugin searching will fail if the bootstrap process does not know how to "scan" the "filesystem" 3: use a "property" to pre load handler classes for a given environment. 4: let every handler be a plugin as to remove the compile & runtime time dependencies. I did not have a way of keeping the code in sync with trunk so it is likely lost now. But it did work well for us. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org