Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 632 for CONSTRUCTOR (0.23 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/AccessModifierDefaultServiceRegistryTest.groovy

            exception.message.contains("Expected a single non-private constructor, or one constructor annotated with @Inject for")
        }
    
        def "can add a type to registry that has an annotated package private constructor and a private constructor"() {
            when:
            def registry = new DefaultServiceRegistry()
            registry.register {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanConstructors.kt

        private
        fun newConstructorForSerialization(beanType: Class<*>, constructor: Constructor<*>): Constructor<out Any> =
            ReflectionFactory.getReflectionFactory().newConstructorForSerialization(beanType, constructor)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/InjectUtil.java

            final Constructor<?>[] constructors = type.getDeclaredConstructors();
            if (constructors.length == 1) {
                Constructor<?> constructor = constructors[0];
                if (isPublicOrPackageScoped(constructor)) {
                    // If there is a single constructor, and that constructor is public or package private we select it.
                    return constructor;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. maven-di/src/main/java/org/apache/maven/di/impl/Binding.java

        public static <R> Binding<R> to(Key<R> originalKey, TupleConstructorN<R> constructor, Class<?>[] types) {
            return Binding.to(
                    originalKey, constructor, Stream.of(types).map(Key::of).toArray(Key<?>[]::new));
        }
    
        public static <R> Binding<R> to(Key<R> originalKey, TupleConstructorN<R> constructor, Key<?>[] dependencies) {
            return to(originalKey, constructor, dependencies, 0);
        }
    
        public static <R> Binding<R> to(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/impl/ConstructorDescImpl.java

         * @param constructor
         *            コンストラクタ。{@literal null}であってはいけません
         */
        public ConstructorDescImpl(final BeanDesc beanDesc, final Constructor<?> constructor) {
            assertArgumentNotNull("beanDesc", beanDesc);
            assertArgumentNotNull("constructor", constructor);
    
            this.beanDesc = beanDesc;
            this.constructor = constructor;
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/reflect/DirectInstantiatorCacheTest.groovy

        @Shared
        def cache = new DirectInstantiator.ConstructorCache()
    
        @Unroll("constructor cache returns the same constructors as 'getConstructors' for #clazz")
        def "constructor cache returns the same constructors as 'getConstructors'"() {
            given:
            def constructor = null
            int i = 0
            while (!constructor && ++i<50) {
                // need a loop because IBM JDK is much more proactive in cleaning weak references
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/reflect/DirectInstantiatorTest.groovy

        def "creates instance with constructor parameters"() {
            CharSequence param = Mock()
    
            expect:
            def result = instantiator.newInstance(SomeType, param)
            result instanceof SomeType
            result.result == param
        }
    
        def "creates instance with subtypes of constructor parameters"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. platforms/software/security/src/main/java/org/gradle/security/internal/KeyringStripper.java

                List.class,
                KeyFingerPrintCalculator.class
            );
            constructor.setAccessible(true);
            return constructor;
        }
    
        private static Constructor<PGPPublicKey> getSubkeyConstructor() throws NoSuchMethodException {
            Constructor<PGPPublicKey> constructor = PGPPublicKey.class.getDeclaredConstructor(
                PublicKeyPacket.class,
                TrustPacket.class,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/InjectUtil.java

                ClassGenerator.GeneratedConstructor<T> constructor = constructors.get(0);
                if (constructor.getParameterTypes().length == 0 && isPublicOrPackageScoped(type.getGeneratedClass(), constructor)) {
                    return constructor;
                }
                if (constructor.getAnnotation(Inject.class) != null) {
                    return constructor;
                }
                if (constructor.getParameterTypes().length == 0) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_test_passes.td

        Test pass for freezing read only variables in the graph.
      }];
    
      let constructor = "::mlir::tf_test::CreateFreezeVariableTestPass()";
    }
    
    def InitTextFileToImportTestPass : Pass<"tf-init-text-file-to-import-test",
      "ModuleOp"> {
      let summary = "generate a temporary file and invoke InitTextFileToImportPass";
      let constructor = "::mlir::tf_test::CreateInitTextFileToImportTestPass()";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 00:21:29 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top