New catalog does not appear to be sending events to listeners
-------------------------------------------------------------

                 Key: GEOS-2174
                 URL: http://jira.codehaus.org/browse/GEOS-2174
             Project: GeoServer
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 1.7.0-RC1
            Reporter: Arne Kepp
            Assignee: Justin Deoliveira
             Fix For: 1.7.0


It looks like the new catalog does not send events to listeners (or I'm using 
it incorrectly). I have verified that the constructor in the code snippet below 
is called and appears to . I have also tried using the bean catalog2 (aka 
securedcatalog), same result.

To test I then logged into the admin interface and change featuretype and 
styles. None of submit, apply, save, load had any effect.

--------- Spring bean definition:
<bean id="gwcCatalogListener" class="org.geoserver.gwc.GWCCatalogListener">
  <constructor-arg type="org.geoserver.catalog.Catalog" ref="rawCatalog" />
</bean>

--------- Java code:
package org.geoserver.gwc;

import org.geoserver.catalog.Catalog;
import org.geoserver.catalog.event.CatalogAddEvent;
import org.geoserver.catalog.event.CatalogListener;
import org.geoserver.catalog.event.CatalogModifyEvent;
import org.geoserver.catalog.event.CatalogRemoveEvent;

public class GWCCatalogListener implements CatalogListener {
    public GWCCatalogListener(Catalog cat) {
        cat.addListener(this);
    }   
    public void handleAddEvent(CatalogAddEvent event) {
        // TODO Auto-generated method stub
        System.out.println(event);
    }
    public void handleModifyEvent(CatalogModifyEvent event) {
        // TODO Auto-generated method stub
        System.out.println(event);
    }
    public void handleRemoveEvent(CatalogRemoveEvent event) {
        // TODO Auto-generated method stub
        System.out.println(event);
    }
}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to