[Yanel-dev] Chain of responsibility and existence check

Michael Wechner michael.wechner at wyona.com
Sat Apr 19 11:47:47 CEST 2008


Hi

If the map.rc-map is being applied and a pattern is matching, but a 
resource might not exist anyway, because some data is missing, then one 
will receive an error, whereas it would actually be nice if the request 
would be passed further down where at the end some other pattern could 
be applied or in the worst case something like "**".

I think the solution would be that the resource interface would have a 
method "exists()" which could be called by the map component, but of 
course this would break backwards compatibility!

Hence I thought we could introduce a new interface which would contain 
such an exists method or the alternative would be to use the exists 
method of the Viewable interface, whereas I think this might be 
confusing, because a resource does not necessarily have to implement the 
viewable interface.

WDYT?

Thanks

Michi

-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61



More information about the Yanel-development mailing list