Example usage for java.lang AutoCloseable interface-usage

List of usage examples for java.lang AutoCloseable interface-usage

Introduction

In this page you can find the example usage for java.lang AutoCloseable interface-usage.

Usage

From source file com.joyent.manta.http.MantaConnectionContext.java

/**
 * Interface describing the contract for a context class that stores state between requests to the Manta API.
 *
 * @author <a href="https://github.com/dekobon">Elijah Zupancic</a>
 * @since 3.0.0
 */

From source file Test.java

class MyResource implements AutoCloseable {

    @Override
    public void close() throws Exception {
        System.out.println("close method executed");
        throw new UnsupportedOperationException("A problem has occurred");

From source file svnserver.context.Local.java

/**
 * Interface for objects in LocalContext.
 *
 * @author Artem V. Navrotskiy <bozaro@users.noreply.github.com>
 */
@ThreadSafe

From source file svnserver.context.Shared.java

/**
 * Interface for objects in SharedContext.
 *
 * @author Artem V. Navrotskiy <bozaro@users.noreply.github.com>
 */
@ThreadSafe

From source file libepg.util.db.JDBCAccessor.java

/**
 *
 * @author dosdiaopfhj
 */
public class JDBCAccessor implements AutoCloseable {

From source file edu.jhu.hlt.alnc.ALNCFileConverter.java

/**
 * Class that can be used to convert ALNC files to {@link ALNCArticleBean} objects. 
 * <br>
 * <br>
 * Each file, as of 2015/2/23, contain one JSON object per line.
 */

From source file io.fluo.api.mini.MiniFluo.java

/**
 * A test and development instance of Fluo containing its own Oracle and Worker
 */
public interface MiniFluo extends AutoCloseable {

    /**

From source file org.trellisldp.webac.WrappedGraph.java

/**
 * A wrapped RDF graph.
 */
class WrappedGraph implements AutoCloseable {

    private final Graph innerGraph;

From source file svnserver.context.SharedContext.java

/**
 * Simple context object.
 *
 * @author Artem V. Navrotskiy <bozaro@users.noreply.github.com>
 */
@ThreadSafe

From source file org.commonjava.cartographer.Cartographer.java

/**
 * Created by jdcasey on 8/14/15.
 */
public interface Cartographer extends AutoCloseable {
    ObjectMapper getObjectMapper();