Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for GetPolicy (0.07 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java

        }
    
        private int getPolicy(RepositorySystemSession session, Artifact a, ArtifactDescriptorRequest request) {
            ArtifactDescriptorPolicy policy = session.getArtifactDescriptorPolicy();
            if (policy == null) {
                return ArtifactDescriptorPolicy.STRICT;
            }
            return policy.getPolicy(session, new ArtifactDescriptorPolicyRequest(a, request.getRequestContext()));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

          return;
        }
        Policy oldPolicy = Policy.getPolicy();
        SecurityManager oldSecurityManager = System.getSecurityManager();
        try {
          Policy.setPolicy(new PermissivePolicy());
          System.setSecurityManager(new SecurityManager());
          doTestUnloadable();
        } finally {
          System.setSecurityManager(oldSecurityManager);
          Policy.setPolicy(oldPolicy);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

            }
    
            return Objects.equals(r1.getId(), r2.getId())
                    && Objects.equals(r1.getUrl(), r2.getUrl())
                    && policyEquals(r1.getPolicy(false), r2.getPolicy(false))
                    && policyEquals(r1.getPolicy(true), r2.getPolicy(true));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

            Policy.setPolicy(savedPolicy);
          }
        } else {
          Policy savedPolicy = Policy.getPolicy();
          AdjustablePolicy policy = new AdjustablePolicy(permissions);
          Policy.setPolicy(policy);
    
          try {
            r.run();
          } finally {
            policy.addPermission(new SecurityPermission("setPolicy"));
            Policy.setPolicy(savedPolicy);
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

            Policy.setPolicy(savedPolicy);
          }
        } else {
          Policy savedPolicy = Policy.getPolicy();
          AdjustablePolicy policy = new AdjustablePolicy(permissions);
          Policy.setPolicy(policy);
    
          try {
            r.run();
          } finally {
            policy.addPermission(new SecurityPermission("setPolicy"));
            Policy.setPolicy(savedPolicy);
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                }
    
                for (ArtifactRepository repository : remoteRepositories) {
                    ArtifactRepositoryPolicy policy = metadata.getPolicy(repository);
    
                    File file =
                            new File(localRepo.getBasedir(), localRepo.pathOfLocalRepositoryMetadata(metadata, repository));
                    boolean update;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java

            }
    
            Versioning filteredVersions = versioning.clone();
    
            for (String version : versioning.getVersions()) {
                if (!remoteRepository
                        .getPolicy(DefaultModelVersionParser.checkSnapshot(version))
                        .isEnabled()) {
                    filteredVersions.removeVersion(version);
                }
            }
    
            return filteredVersions;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

            // meta-versions like RELEASE and LATEST to resolve, and also to allow retrieval of the range of valid, released
            // artifacts available.
            ArtifactRepositoryPolicy policy = metadata.getPolicy(repository);
    
            if (!policy.isEnabled()) {
                if (getLogger().isDebugEnabled()) {
                    getLogger()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        forceConnectionsToExpire(pool, expireSooner)
        assertThat(pool.connectionCount()).isEqualTo(1)
      }
    
      private fun setPolicy(
        pool: RealConnectionPool,
        address: Address,
        policy: ConnectionPool.AddressPolicy,
      ) {
        pool.setPolicy(address, policy)
        taskFaker.runTasks()
      }
    
      private fun evictAllConnections(pool: RealConnectionPool) {
        pool.evictAll()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jun 22 16:06:35 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          }
        }
    
        return references.size
      }
    
      /**
       * Adds or replaces the policy for [address].
       * This will trigger a background task to start creating connections as needed.
       */
      fun setPolicy(
        address: Address,
        policy: ConnectionPool.AddressPolicy,
      ) {
        val state = AddressState(address, taskRunner.newQueue(), policy)
        val newConnectionsNeeded: Int
    
        while (true) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top