|
From: Alef A. \(JTeam\) <al...@jt...> - 2003-07-14 16:11:53
|
Ok, done... Changes as follows: *** Addition of com.interface21.util.PathMatcher with corresponding tests Maybe documentation could be a bit more extensive, I've added __some__ examples of what patterns match with what. *** Addition of com.interface21.web.servlet.mvc.multiaction.PathMatchinMethodNameResolve r This class extends PropertiesMethodNameResolver in the usual fashion, just overriding the getMethodName-method. I noticed one thing while writing the tests (included in MultiActionControllerTestSuite or whatever its name is, in the com.interface21.web.servlet.mvc package). The PropertiesMethodNameResolver implements InitializingBean, but the afterPropertiesSet() method does not get called during the tests. When the not-empty-constructor is used, the afterPropertiesSet() method is called directortly from there, but that shouldn't be the case, should it... Anyway, I've implemented a test in the MultiActionControllerTestSuite that tests with an empty constructor as well, but can't enable it because it fails because afterPropertiesSet() isn't called. Is this only called at runtime or something? *** Changes in com.interface21.web.servlet.mvc.multiaction.PropertiesMethodNameResolver Same thing as with the AbstractUrlHandlerMapping, I made the mappings Properties object protected so I can access it from any extending classes That's basically it... Please keep me posted on when you guys have committed it, so I can keep in sync with the codeline... Cheers, Alef |