Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 406 for factory (0.29 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/DelegatingProjectDependency.java

        private final TypeSafeProjectDependencyFactory factory;
        private final ProjectDependencyInternal delegate;
    
        public DelegatingProjectDependency(TypeSafeProjectDependencyFactory factory, ProjectDependencyInternal delegate) {
            this.factory = factory;
            this.delegate = delegate;
        }
    
        protected ProjectDependencyInternal create(String path) {
            return factory.create(path);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:17:37 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheBuilder.java

        private LockOptions lockOptions = mode(FileLockManager.LockMode.Shared);
        private String displayName;
    
        public DefaultCacheBuilder(CacheFactory factory, File baseDir) {
            this.factory = factory;
            this.baseDir = baseDir;
        }
    
        @Override
        public CacheBuilder withProperties(Map<String, ?> properties) {
            this.properties = properties;
            return this;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 19:10:33 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/cache/internal/DefaultFileContentCacheFactoryTest.groovy

            0 * _
    
            when:
            result = factory.newCache("cache", 12000, calculator, BaseSerializerFactory.INTEGER_SERIALIZER).get(file)
    
            then:
            result == 12
    
            and:
            0 * _
        }
    
        def "reuses calculated value for file across factory instances"() {
            def file = new File("thing.txt")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/exceptions/DefaultMultiCauseExceptionNoStackTrace.java

    import org.gradle.internal.Factory;
    
    /**
     * A specialized version of multi cause exception that is cheaper to create
     * because we avoid to fill a stack trace, and the message MUST be generated lazily.
     */
    @Contextual
    public class DefaultMultiCauseExceptionNoStackTrace extends DefaultMultiCauseException {
        public DefaultMultiCauseExceptionNoStackTrace(Factory<String> messageFactory) {
            super(messageFactory);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/util/internal/DeferredUtil.java

            }
            if (value instanceof Factory) {
                return ((Factory<?>) value).create();
            }
            return value;
        }
    
        public static boolean isDeferred(Object value) {
            return value instanceof Provider
                || value instanceof Factory
                || isNestableDeferred(value);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/tooling/provider/model/internal/DefaultToolingModelBuilderRegistryTest.groovy

            when:
            def result = actualBuilder.buildAll("model", project)
    
            then:
            result == "result"
    
            and:
            1 * projectStateRegistry.allowUncontrolledAccessToAnyProject(_) >> { Factory factory -> factory.create() }
            1 * builder2.buildAll("model", project) >> "result"
            0 * _
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ProjectLeaseRegistry.java

         */
        boolean getAllowsParallelExecution();
    
        /**
         * Releases any project state locks or task execution locks currently held by the current thread and executes the {@link Factory}.
         * Upon completion of the {@link Factory}, if a lock was held at the time the method was called, then it will be reacquired.
         * If no locks were held at the time the method was called, then no attempt will be made to reacquire a lock on completion.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/xml/DocumentBuilderFactoryUtil.java

        }
    
        public static DocumentBuilderFactory newInstance(final boolean external) {
            final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            if (!external) {
                try {
                    factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
                    factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_SCHEMA, "");
                } catch (final Exception e) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt

        level = DeprecationLevel.HIDDEN,
      )
      @JvmStatic
      fun createFactory(client: OkHttpClient) = createFactory(client as Call.Factory)
    
      @JvmStatic
      fun createFactory(callFactory: Call.Factory): EventSource.Factory {
        return EventSource.Factory { request, listener ->
          val actualRequest =
            if (request.header("Accept") == null) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:18:15 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/transform/AttributeMatchingArtifactVariantSelectorSpec.groovy

            def result = selector.select(variantSetOf(variants), requestedAttributes, false, factory)
    
            then:
            result == transformed
    
            1 * attributeMatcher.matches(_, _, _) >> Collections.emptyList()
            1 * consumerProvidedVariantFinder.findTransformedVariants(variants, requestedAttributes) >> transformedVariants
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top