I just came across an annoying difference between documented and actual behaviour.
The docs for org.geoserver.catalog.Wrapper.unwrap says it should drill down through a stack of nested Wrappers until it comes across an implementation of the specified class. Its implementation in org.geoserver.catalog.impl.AbstractDecorator drills all the way to the non-wrapper class at the bottom, regardless of whether any of the intervening wrappers implemented the given class, then returns that if it implements the given class. Both behaviours obviously have uses. Right now it's used to find the real Catalog behind a stack of decorators, but it would also be useful to be able to pull a specific decorator like AdvertisedCatalog out of the stack. -- Kevin Michael Smith [email protected] ------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
