(This question pertains to GS 2.0) The GWC plugin has a class that implements CatalogListener. Among other things it implements a method , public void handleModifyEvent(CatalogModifyEvent event)
My understanding is that I get at the underlying object by calling Object obj = event.getSource() The objects I am interested in dealing with are CoverageInfo, FeatureTypeInfo (ResourceInfo), and LayerGroupInfo , and I need to treat each one of those separately. Normally I would just do if(obj instanceof ...) , but since LayerGroupInfo comes out as a proxy object ($Proxy21) it doesn't work. I can think of at least two ways to get around this (test for specific methods, or use reflection on the proxy object), but I suspect there is a correct way of solving this problem? Thanks Justin ;) -Arne -- Arne Kepp OpenGeo - http://opengeo.org Expert service straight from the developers ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
