Examples of GeoServerLoader


Examples of org.geoserver.config.GeoServerLoader

       
        add(new AjaxLink("reload.catalogConfig") {
            @Override
            public void onClick(AjaxRequestTarget target) {
                try {
                    GeoServerLoader loader = GeoServerExtensions.bean(GeoServerLoader.class);
                    synchronized (org.geoserver.config.GeoServer.CONFIGURATION_LOCK) {
                        getCatalog().getResourcePool().dispose();
                        loader.reload();
                       
                        info(getLocalizer().getString("catalogConfigReloadedSuccessfully", StatusPage.this));
                    }
                } catch(Exception e) {
                    LOGGER.log(Level.SEVERE, "An error occurred while reloading the catalog", e);
View Full Code Here

Examples of org.geoserver.config.GeoServerLoader

    /**
     * Method to reload the catalog
     */
    protected void reloadCatalog() throws Exception {
        try {
            GeoServerLoader loader = GeoServerExtensions.bean(GeoServerLoader.class);
            if (loader != null) {
                synchronized (org.geoserver.config.GeoServer.CONFIGURATION_LOCK) {
                    loader.reload();
                    LOGGER.info("Catalog reloaded.");
                }
            }
        } catch (Exception e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of org.geoserver.config.GeoServerLoader

        // Reloads the whole catalog and config from the file system
        add(new IndicatingAjaxLink("reload") {
            @Override
            public void onClick(AjaxRequestTarget target) {
                try {
                    GeoServerLoader loader = (GeoServerLoader) GeoServerApplication.get().getBean("geoServerLoader");
                    synchronized (org.geoserver.config.GeoServer.CONFIGURATION_LOCK) {
                        loader.reload();
                    }
                    info("Catalog and configuration reloaded");
                } catch(Exception e) {
                    error(e);
                }
View Full Code Here

Examples of org.geoserver.config.GeoServerLoader

     * This method can be used by subclasses from a test method after they have
     * changed the configuration on disk.
     * </p>
     */
    protected void reloadCatalogAndConfiguration() throws Exception {
        GeoServerLoader loader = GeoServerExtensions.bean( GeoServerLoader.class , applicationContext );
        loader.reload();
    }
View Full Code Here

Examples of org.geoserver.config.GeoServerLoader

    /**
     * Saving and reloading the GSS service configuration was not working, this test ensure that it
     * actually does
     */
    public void testReload() throws Exception {
        GeoServerLoader loader = GeoServerExtensions.bean(GeoServerLoader.class);
        getCatalog().getResourcePool().dispose();
        loader.reload();

        GSSInfo info = getGeoServer().getService(GSSInfo.class);

        assertNotNull(info);

View Full Code Here

Examples of org.geoserver.config.GeoServerLoader

    /**
     * Saving and reloading the GSS service configuration was not working, this test ensure that it
     * actually does
     */
    public void testReload() throws Exception {
        GeoServerLoader loader = GeoServerExtensions.bean(GeoServerLoader.class);
        getCatalog().getResourcePool().dispose();
        loader.reload();

        GSSInfo info = getGeoServer().getService(GSSInfo.class);

        assertNotNull(info);

View Full Code Here

Examples of org.geoserver.config.GeoServerLoader

        // Reloads the whole catalog and config from the file system
        add(new IndicatingAjaxLink("reload") {
            @Override
            public void onClick(AjaxRequestTarget target) {
                try {
                    GeoServerLoader loader = (GeoServerLoader) GeoServerApplication.get().getBean("geoServerLoader");
                    synchronized (org.geoserver.config.GeoServer.CONFIGURATION_LOCK) {
                        loader.reload();
                    }
                    info("Catalog and configuration reloaded");
                } catch(Exception e) {
                    error(e);
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.