Examples of addListener()


Examples of org.geoserver.catalog.impl.CatalogImpl.addListener()

       
        //add listener now as a converter which will convert from the old style
        // data directory to the new
        GeoServerPersister p = new GeoServerPersister( resourceLoader, xp );
        if ( !legacy ) {
            catalog2.addListener( p );
        }
       
        LegacyCatalogImporter importer = new LegacyCatalogImporter(catalog2);
        importer.setResourceLoader(resourceLoader);
        importer.imprt(resourceLoader.getBaseDirectory());
View Full Code Here

Examples of org.geoserver.config.GeoServer.addListener()

    @Test
    public void testNoSave() throws Exception {
        GeoServer gs = createMock(GeoServer.class);

        List<ConfigurationListener> listeners = new ArrayList();
        gs.addListener(capture(listeners));
        expectLastCall().atLeastOnce();

        //load all process groups so there is no call to save
        List<ProcessGroupInfo> procGroups = WPSInitializer.lookupProcessGroups();
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerImpl.addListener()

        this.catalog = catalog;
    }

    protected void createConfig() {
        GeoServerImpl geoServer = new GeoServerImpl();
        geoServer.addListener(new GeoServerPersister(new GeoServerResourceLoader(data),
            createXStreamPersister()));

        GeoServerInfo global = geoServer.getFactory().createGlobal();
        geoServer.setGlobal(global);
        addSettings(null, geoServer);
View Full Code Here

Examples of org.geoserver.platform.resource.Resource.addListener()

                    // remove this when wms works off style info
                    style.setName( info.getName() );
                    styleCache.put( info, style );
                   
                    final Resource styleResource = dataDir().style(info);
                    styleResource.addListener( new ResourceListener() {
                        @Override
                        public void changed(ResourceNotification notify) {
                            styleCache.remove(info);
                            styleResource.removeListener( this );
                        }
View Full Code Here

Examples of org.geotools.swing.dialog.JTextReporter.Connection.addListener()

    @Test
    public void listenerInformedWhenTextIsUpdated() throws Exception {
        Connection conn = showDialog(TITLE).get();

        final CountDownLatch latch = new CountDownLatch(1);
        conn.addListener(new TextReporterListener() {
            @Override
            public void onReporterClosed() {}

            @Override
            public void onReporterUpdated() {
View Full Code Here

Examples of org.geotools.swing.wizard.ParamField.addListener()

            }
            field.setValue(value);
        }
        for (Entry<Parameter<?>, ParamField> entry : fields.entrySet()) {
            ParamField field = entry.getValue();
            field.addListener(getJWizard().getController());
        }
    }

    @Override
    public void preClosePanel() {
View Full Code Here

Examples of org.geowebcache.storage.blobstore.file.FileBlobStore.addListener()

        final String newLayerName = "modifiedLayerName";
        BlobStoreListener listener = EasyMock.createNiceMock(BlobStoreListener.class);
        listener.layerRenamed(EasyMock.eq(layerName), EasyMock.eq(newLayerName));
        EasyMock.replay(listener);

        fbs.addListener(listener);

        boolean renamed = fbs.rename(layerName, newLayerName);
        assertTrue(renamed);

        EasyMock.verify(listener);
View Full Code Here

Examples of org.glassfish.grizzly.http.server.HttpServer.addListener()

        networkListener.registerAddOn(new HttpPipelineOptAddOn());
       
        // disable file-cache
        networkListener.getFileCache().setEnabled(false);
       
        httpServer.addListener(networkListener);
       
        httpServer.getServerConfiguration().addHttpHandler(
                new RootHttpHandler(), "/");
//        httpServer.getServerConfiguration().addHttpHandler(
//                new PlainTextHttpHandler(), "/plaintext");
View Full Code Here

Examples of org.glassfish.grizzly.servlet.WebappContext.addListener()

                registration.setInitParameters(deploymentContext.getInitParams());
                registration.addMapping(servletPathLocal);
            }

            for (final Class<? extends EventListener> eventListener : deploymentContext.getListeners()) {
                context.addListener(eventListener);
            }

            final Map<String, String> contextParams = deploymentContext.getContextParams();
            for (final String contextParamName : contextParams.keySet()) {
                context.addContextInitParameter(contextParamName, contextParams.get(contextParamName));
View Full Code Here

Examples of org.globus.gram.GramJob.addListener()

      NotificationService notifier = context.getNotificationService();
      DurationObj compObj = notifier.computationStarted();
      StringBuffer buf = new StringBuffer();

      JobSubmissionListener listener = new JobSubmissionListener(job, context);
      job.addListener(listener);
      log.info("Request to contact:" + contact);
      // The first boolean is to specify the job is a batch job - use true
      // for interactive and false for batch.
      // the second boolean is to specify to use the full proxy and not
      // delegate a limited proxy.
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.