[Geoserver-devel] [jira] Created: (GEOS-4326) ResourcePoolInitializer sets the feature type cache size to 0 regardless of the actual configuration

ResourcePoolInitializer sets the feature type cache size to 0 regardless of the actual configuration
----------------------------------------------------------------------------------------------------

                 Key: GEOS-4326
                 URL: http://jira.codehaus.org/browse/GEOS-4326
             Project: GeoServer
          Issue Type: Bug
    Affects Versions: 2.1-RC1
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 2.1-RC2

This is happening because it's using the index of the property instead of its value:

{code}
geoServer.addListener(new ConfigurationListenerAdapter() {
            @Override
            public void handleGlobalChange(GeoServerInfo global, List<String> propertyNames,
                    List<Object> oldValues, List<Object> newValues) {
                int i = propertyNames.indexOf( "featureTypeCacheSize" );
                if (i > -1) {
                    gs.getCatalog().getResourcePool().setFeatureTypeCacheSize(i);
                }
            }
        });
{code}

This in turn results the LRUMap to use its default size, which is only 16

--
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