[Geoserver-devel] [JIRA] (GEOS-7616) Allowing plugins to be discovered through appContext and reload/store conifguration via Interface

Alessio Fabiani created an issue

GeoServer / ImprovementGEOS-7616

Allowing plugins to be discovered through appContext and reload/store conifguration via Interface

Issue Type:

ImprovementImprovement

Affects Versions:

2.10-beta

Assignee:

Alessio Fabiani

Components:

Configuration, Control-flow, JDBCConfig, Main, Monitoring

Created:

01/Jul/16 11:33 AM

Priority:

MediumMedium

Reporter:

Alessio Fabiani

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

    }}

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.110.0#100004-sha1:4011b0e)

Atlassian logo