Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for AutoCloseable (0.26 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupContext.java

        public PersistedToolchains effectiveToolchains;
    
        public final List<AutoCloseable> closeables = new ArrayList<>();
    
        @Override
        public void close() throws InvokerException {
            List<Exception> causes = null;
            List<AutoCloseable> cs = new ArrayList<>(closeables);
            Collections.reverse(cs);
            for (AutoCloseable c : cs) {
                if (c != null) {
                    try {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactory.java

                    // Continue with destruction even if listener fails
                }
            }
    
            // Close the object if it implements AutoCloseable or Closeable
            final T obj = p.getObject();
            if (obj instanceof AutoCloseable) {
                try {
                    ((AutoCloseable) obj).close();
                } catch (final Exception e) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbTree.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs;
    
    /**
     * Opaque reference to a SMB tree
     *
     * @author mbechler
     *
     */
    public interface SmbTree extends AutoCloseable {
    
        /**
         * Unwraps the tree instance to the specified type
         * @param <T> the target tree type
         * @param type the class of the tree type to unwrap to
         * @return tree instance with the given type
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClient.java

    /**
     * Interface representing a client for a web crawler.
     * This client is responsible for executing requests and handling responses.
     * It extends {@link AutoCloseable} to allow for resource management.
     */
    public interface CrawlerClient extends AutoCloseable {
    
        /**
         * Sets the initialization parameters for the crawler client.
         *
         * @param params a map containing the initialization parameters
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbPipeHandle.java

     */
    package jcifs;
    
    import java.io.InputStream;
    import java.io.OutputStream;
    
    /**
     * Handle to an open named pipe
     *
     * @author mbechler
     *
     */
    public interface SmbPipeHandle extends AutoCloseable {
    
        /**
         * Gets the pipe resource associated with this handle.
         *
         * @return the pipe
         */
        SmbPipeResource getPipe();
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/CloseableIterator.java

    package jcifs;
    
    import java.util.Iterator;
    
    /**
     * An iterator that implements AutoCloseable to allow resource cleanup.
     * This interface combines Iterator functionality with automatic resource management.
     *
     * @param <T> the type of elements returned by this iterator
     * @author mbechler
     */
    public interface CloseableIterator<T> extends Iterator<T>, AutoCloseable {
    
        /**
         * {@inheritDoc}
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbSession.java

     */
    package jcifs;
    
    /**
     * Opaque reference to a SMB session
     *
     * @author mbechler
     */
    public interface SmbSession extends AutoCloseable {
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        void close();
    
        /**
         * Returns the configuration object used by this SMB session.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellCommandRegistryHolder.java

    import java.util.ArrayList;
    import java.util.List;
    
    import org.jline.console.CommandRegistry;
    
    import static java.util.Objects.requireNonNull;
    
    public class ShellCommandRegistryHolder implements AutoCloseable {
        private final List<CommandRegistry> commandRegistries;
    
        public ShellCommandRegistryHolder() {
            this.commandRegistries = new ArrayList<>();
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 17 09:50:45 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/CloseableIteratorTest.java

            // Then
            verify(mockIterator).close();
        }
    
        @Test
        @DisplayName("Should extend Iterator and AutoCloseable")
        void testInterfaceInheritance() {
            // Then
            assertTrue(java.util.Iterator.class.isAssignableFrom(CloseableIterator.class));
            assertTrue(AutoCloseable.class.isAssignableFrom(CloseableIterator.class));
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 964 bytes
    - Viewed (0)
  10. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Invoker.java

     * that can handle various types of {@link InvokerRequest InvokerRequests}. It also implements
     * {@link AutoCloseable} to ensure proper resource management.</p>
     *
     * @since 4.0.0
     */
    @Experimental
    public interface Invoker extends AutoCloseable {
        /**
         * Invokes the Maven application using the provided {@link InvokerRequest}.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 31 20:56:58 UTC 2025
    - 2.6K bytes
    - Viewed (0)
Back to top