Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 503 for factory (0.13 sec)

  1. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/Factory.java

     * limitations under the License.
     */
    package org.gradle.internal;
    
    import javax.annotation.Nullable;
    
    /**
     * A generic factory which creates instances of type T.
     *
     * @param <T> The type of object created.
     */
    public interface Factory<T> {
        /**
         * Creates a new instance of type T.
         * @return The instance.
         */
        @Nullable
        T create();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 938 bytes
    - Viewed (0)
  2. pilot/pkg/security/authn/factory.go

    Steven Landow <******@****.***> 1713392444 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. pkg/test/framework/components/cluster/kube/factory.go

    John Howard <******@****.***> 1717711954 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. testing/architecture-test/src/changes/archunit-store/configuration-factory-methods.txt

    Anže Sodja <******@****.***> 1717576978 +0200
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:43:33 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultCacheFactoryTest.groovy

            cleanup:
            factory.close()
        }
    
        void "can visit all caches created by factory"() {
            def visited = [] as Set
    
            when:
            factory.open(tmpDir.testDirectory.file('foo'), "foo", [prop: 'value'], mode(Shared), null, null)
            factory.open(tmpDir.testDirectory.file('bar'), "bar", [prop: 'value'], mode(Shared), null, null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          throws InvocationTargetException, IllegalAccessException {
        T returnValue = factory.invoke(null, args.toArray());
        if (returnValue == null) {
          Assert.assertTrue(
              factory + " returns null but it's not annotated with @Nullable", isNullable(factory));
        }
        return returnValue;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultWorkerLeaseService.java

        @Override
        public <T> T whileDisallowingProjectLockChanges(Factory<T> action) {
            return registries.get().getProjectLockRegistry().whileDisallowingLockChanges(action);
        }
    
        @Override
        public <T> T allowUncontrolledAccessToAnyProject(Factory<T> factory) {
            return registries.get().getProjectLockRegistry().allowUncontrolledAccessToAnyResource(factory);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 04:43:28 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          throws InvocationTargetException, IllegalAccessException {
        T returnValue = factory.invoke(null, args.toArray());
        if (returnValue == null) {
          Assert.assertTrue(
              factory + " returns null but it's not annotated with @Nullable", isNullable(factory));
        }
        return returnValue;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/work/TestWorkerLeaseService.groovy

        <T> T withLocks(Collection<? extends ResourceLock> locks, Factory<T> factory) {
            return factory.create()
        }
    
        @Override
        void withLocks(Collection<? extends ResourceLock> locks, Runnable action) {
            action.run()
        }
    
        @Override
        <T> T withoutLocks(Collection<? extends ResourceLock> locks, Factory<T> factory) {
            return factory.create()
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/DefaultExecutorFactoryTest.groovy

            }
            def action2 = {
                thread.block()
                instant.completed2
            }
    
            when:
            async {
                factory.create("1").execute(action1)
                factory.create("2").execute(action2)
                factory.stop()
                instant.stopped
            }
    
            then:
            instant.stopped > instant.completed1
            instant.stopped > instant.completed2
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top