Examples of dispose()


Examples of org.geotools.jdbc.JDBCDataStore.dispose()

        sf.setAttribute("g", new GeometryFactory().createPoint( new Coordinate(2,2)));
        sf.setAttribute( "name", "two");
        fw.write();
       
        fw.close();
        ds.dispose();
    }
   
    public void testCreateDataStore() throws Exception {
        assertNull( catalog.getDataStoreByName( "gs", "acme") );
       
View Full Code Here

Examples of org.geotools.map.DefaultMapContext.dispose()

    RasterizingContainer response = new RasterizingContainer();
    context.put(RasterizingPipelineCode.CLIENT_MAP_INFO_KEY, clientMapInfo);
    context.put(RasterizingPipelineCode.RENDERING_HINTS, renderingHints);
    context.put(RasterizingPipelineCode.MAP_CONTEXT_KEY, mapContext);
    pipelineService.execute(RasterizingPipelineCode.PIPELINE_RASTERIZING_GET_MAP_IMAGE, null, context, response);
    mapContext.dispose();
    try {
      stream.write(response.getImage());
    } catch (IOException e) {
      throw new RasterException(RasterException.IMAGE_WRITING_FAILED, e);
    }
View Full Code Here

Examples of org.geotools.map.MapContent.dispose()

            final ReferencedEnvelope mapArea = bounds.toReferencedEnvelope(paintArea, transformer.getDPI());
            renderer.paint(graphics2D, paintArea, mapArea);
        } catch (Exception e) {
            throw ExceptionUtils.getRuntimeException(e);
        } finally {
            content.dispose();
        }
    }

    /**
     * Get the {@link org.geotools.data.DataStore} object that contains the data for this layer.
View Full Code Here

Examples of org.geotools.map.MapContext.dispose()

        renderingHints.put(StreamingRenderer.ADVANCED_PROJECTION_HANDLING_KEY, Boolean.TRUE);
        renderingHints.put(StreamingRenderer.CONTINUOUS_MAP_WRAPPING, Boolean.TRUE);
        renderer.setRendererHints(renderingHints);
        renderer.paint(graphics, paintArea, areaOfInterest);
       
        mapContent.dispose();
    }

    private SimpleFeature createCrsBoundsFeature(Geometry geom, CoordinateReferenceSystem crs) {
        SimpleFeatureType featureType;
View Full Code Here

Examples of org.geotools.util.DefaultProgressListener.dispose()

               
            }
           
            @Override
            public void dispose() {
                adaptee.dispose();
               
            }
           
            @Override
            public void complete() {
View Full Code Here

Examples of org.glassfish.embeddable.GlassFish.dispose()

            catch (TransactionFailure e) {
                logger.severe(strings.get("InitializerTransactionFailure",
                        inhabitant.getClass()));
            }
        }
        glassfish.dispose();
    }

    private void initSecureAdminSettings(final DomainConfig config) {
        config.put(DomainConfig.K_ADMIN_CERT_DN, KeystoreManager.getDASCertDN(config));
        config.put(DomainConfig.K_INSTANCE_CERT_DN, KeystoreManager.getInstanceCertDN(config));
View Full Code Here

Examples of org.glassfish.grizzly.Buffer.dispose()

        if (read > 0) {
            buffer.position(read);
            buffer.allowBufferDispose(true);
        } else {
            if (buffer != null) {
                buffer.dispose();
            }
           
            if (read < 0) {
                //noinspection ThrowableResultOfMethodCallIgnored
                throw error != null
View Full Code Here

Examples of org.gstreamer.Buffer.dispose()

           
            //
            // Dispose of the gstreamer buffer immediately to avoid more being
            // allocated before the java GC kicks in
            //
            buffer.dispose();
        }
    }
}
View Full Code Here

Examples of org.gstreamer.query.ApplicationQuery.dispose()

    @Test public void applicationQuery() {
        QueryType type = GstQueryAPI.GSTQUERY_API.gst_query_type_register("application_test", "An application query");
        Structure s = new Structure("test");
        ApplicationQuery query = new ApplicationQuery(type, s);
        s = query.getStructure();
        query.dispose();
    }
    @Test public void segmentQuery() {
        SegmentQuery query = new SegmentQuery(Format.TIME);
        ClockTime end = ClockTime.fromMillis(1000);
        query.setSegment(1.0, Format.TIME, 0, end.toNanos());
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.views.table.TableItemOrTreeItem.dispose()

        }
        this.ourForeground.dispose();
      }

      if (itemNeedsDisposal) {
        item.dispose();
      } else if (table.getItemCount() > 0) {
        System.err.println("No table row was found to dispose");
      }
    } else {
      if (!Utils.isThisThreadSWT()) {
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.