Examples of dispose()


Examples of org.apache.poi.xssf.streaming.SXSSFWorkbook.dispose()

    sheet2.setRowGroupCollapsed(4, true);

    FileOutputStream fileOut = new FileOutputStream("outlining_collapsed.xlsx");
    wb2.write(fileOut);
    fileOut.close();
    wb2.dispose();
  }
}
View Full Code Here

Examples of org.apache.servicemix.jbi.framework.ComponentMBeanImpl.dispose()

        if (component != null) {
            component.doShutDown();
            component.unregisterMbeans(managementContext);
            registry.deregisterComponent(component);
            environmentContext.unreregister(component);
            component.dispose();
            LOG.info("Deactivating component " + componentName);
        } else {
            throw new JBIException("Could not find component " + componentName);
        }
    }
View Full Code Here

Examples of org.apache.slide.projector.Store.dispose()

        String key = ((StringValue)parameter.get(KEY)).toString();
        Store store = context.getStore(StoreHelper.getStoreByName(name));
        if ( store == null ) {
            throw new ProcessException(new ErrorMessage("storeNotAvailable", new String[] {name}));
        }
        store.dispose(key);
        return new Result( StateDescriptor.OK );
    }

    public ParameterDescriptor[] getParameterDescriptors() {
        return parameterDescriptor;
View Full Code Here

Examples of org.apache.sling.api.scripting.SlingScriptHelper.dispose()

        } finally {
            // dispose of the SlingScriptHelper
            if ( bindings != null ) {
                final SlingScriptHelper helper = (SlingScriptHelper) bindings.get(SLING);
                if ( helper != null ) {
                    helper.dispose();
                }
            }
           
            // close the script reader (SLING-380)
            if (reader != null) {
View Full Code Here

Examples of org.apache.sling.engine.impl.request.RequestData.dispose()

            if (requestLogger != null) {
                requestLogger.logRequestExit(request, response);
            }

            // dispose any request data
            requestData.dispose();

            // logout the session we have got for this request
            if (session != null) {
                session.logout();
            }
View Full Code Here

Examples of org.apache.sling.hc.util.HealthCheckFilter.dispose()

        try {
            final ServiceReference[] healthCheckReferences = filter.getTaggedHealthCheckServiceReferences(tags);

            return this.execute(healthCheckReferences);
        } finally {
            filter.dispose();
        }
    }

    /**
     * @see org.apache.sling.hc.core.impl.executor.ExtendedHealthCheckExecutor#execute(org.osgi.framework.ServiceReference)
View Full Code Here

Examples of org.apache.sling.jcr.resource.internal.ObservationListenerSupport.dispose()

                this.listener = new JcrResourceListener(root, support);
            }
            closeSupport = false;
        } finally {
            if ( closeSupport ) {
                support.dispose();
            }
        }
    }

    @Deactivate
View Full Code Here

Examples of org.apache.stratum.jcs.engine.behavior.ICache.dispose()

                                }
                            }
                        }
                        if ( aux.getCacheType() == ICache.DISK_CACHE )
                        {
                            aux.dispose();
                        }
                    }
                }
                catch ( IOException ex )
                {
View Full Code Here

Examples of org.apache.subversion.javahl.ISVNEditor.dispose()

        {
            // Deactivate the open editor
            ISVNEditor ed = editorReference.get();
            if (ed != null)
            {
                ed.dispose();
                editorReference.clear();
            }
            editorReference = null;
        }
        if (reporterReference != null)
View Full Code Here

Examples of org.apache.subversion.javahl.ISVNReporter.dispose()

        {
            // Deactivate the open reporter
            ISVNReporter rp = reporterReference.get();
            if (rp != null)
            {
                rp.dispose();
                reporterReference.clear();
            }
            reporterReference = null;
        }
        nativeDispose();
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.