Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 379 for factory (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ProducerGuard.java

    /**
     * Synchronizes access to some resource, by making sure that 2 threads do not try to produce it at the same time.
     * The resource to be accessed is represented by a key, and the factory is whatever needs to be done to produce it.
     * This is <b>not</b> a cache. The factory should take care of caching wherever it makes sense.
     *
     * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:31 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/providers/services/groovy/build.gradle

    }
    
    repositories {
        mavenCentral()
    }
    
    // tag::object-factory[]
    tasks.register("myObjectFactoryTask") {
        doLast {
            def objectFactory = project.objects
            def myProperty = objectFactory.property(String)
            myProperty.set("Hello, Gradle!")
            println myProperty.get()
        }
    }
    // end::object-factory[]
    
    // tag::object-factory-inject[]
    abstract class MyObjectFactoryTask extends DefaultTask {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:14:15 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultMultiProcessSafeIndexedCache.java

        private final FileAccess fileAccess;
        private final Supplier<BTreePersistentIndexedCache<K, V>> factory;
        private BTreePersistentIndexedCache<K, V> cache;
    
        public DefaultMultiProcessSafeIndexedCache(Supplier<BTreePersistentIndexedCache<K, V>> factory, FileAccess fileAccess) {
            this.factory = factory;
            this.fileAccess = fileAccess;
        }
    
        @Override
        public String toString() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top