Package org.geoserver.config

Examples of org.geoserver.config.GeoServerLoader.reload()


            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


    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

            @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

     * changed the configuration on disk.
     * </p>
     */
    protected void reloadCatalogAndConfiguration() throws Exception {
        GeoServerLoader loader = GeoServerExtensions.bean( GeoServerLoader.class , applicationContext );
        loader.reload();
    }
   
    /**
     * Accessor for global catalog instance from the test application context.
     */
 
View Full Code Here

     * 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

     * 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

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