| As a GeoServer Developer I would like to create extensions able to discover GeoServer plugins and get info on their configuration. I would like also to be able to store their configuration on a specific Resource other than the default GeoServer Catalog/DataDir and force them to reload the configuration if needed (whenever a change has occurred). In order to do that I need an interface called "GeoServerPluginConfigurator" exposing methods allowing me to operate ad specified above: {{/* (c) 2014 Open Source Geospatial Foundation - all rights reserved
- (c) 2001 - 2013 OpenPlans
- This code is licensed under the GPL 2.0 license, available at the root
- application directory.
*/ package org.geoserver.config;
import java.io.IOException; import java.util.List; import org.geoserver.platform.GeoServerResourceLoader; import org.geoserver.platform.resource.Resource; /**
- A common interface which must be used by all GeoServer plugins.
- This will allow GeoServerExtensions to retrieve all the available configurators and
- let GeoServer to be aware of their extra-configuration files (usually properties
- files customized and specific for each plugin - see control-flow, monitoring and so on...).
- @author Alessio Fabiani, GeoSolutions
* */ public interface GeoServerPluginConfigurator { public List<Resource> getFileLocations() throws IOException; public void saveConfiguration(GeoServerResourceLoader resourceLoader) throws IOException; public void loadConfiguration(GeoServerResourceLoader resourceLoader) throws IOException; } }}
|