Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RepositorySystemSupplier (0.19 sec)

  1. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/RepositorySystemSupplier.java

     * well. Any subsequent {@code getXXX} method invocation attempt will fail with {@link IllegalStateException}.
     */
    public class RepositorySystemSupplier implements Supplier<RepositorySystem> {
        private final AtomicBoolean closed = new AtomicBoolean(false);
    
        public RepositorySystemSupplier() {}
    
        private void checkClosed() {
            if (closed.get()) {
                throw new IllegalStateException("Supplier is closed");
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 43.7K bytes
    - Viewed (0)
  2. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java

                }
            };
        }
    
        @Provides
        static RepositorySystemSupplier newRepositorySystemSupplier() {
            return new RepositorySystemSupplier();
        }
    
        @Provides
        static RepositorySystem newRepositorySystem(RepositorySystemSupplier repositorySystemSupplier) {
            return repositorySystemSupplier.getRepositorySystem();
        }
    
        @Provides
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 17.1K bytes
    - Viewed (0)
Back to top