Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,389 for addLink (0.12 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/StructNodeInitializer.java

        }
    
        private void addLink(MutableModelNode modelNode, ModelRegistrations.Builder builder, boolean internal) {
            ModelRegistration registration = builder
                .descriptor(modelNode.getDescriptor())
                .hidden(internal)
                .build();
            modelNode.addLink(registration);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/model/internal/fixture/ModelRegistryHelperExtension.java

        }
    
        public static void addLink(MutableModelNode node, String path, Transformer<ModelRegistration, ModelRegistrations.Builder> definition) {
            addLink(node, ModelPath.path(path), definition);
        }
    
        public static void addLink(MutableModelNode node, ModelPath path, Transformer<ModelRegistration, ModelRegistrations.Builder> definition) {
            node.addLink(definition.transform(registration(path)));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/ModelGraphTest.groovy

            def f = node("d")
    
            given:
            def listener = Mock(ModelListener) {
                matches(_) >> true
                getAncestor() >> a.path
            }
            a.addLink b
            b.addLink c
    
            when:
            graph.add(a)
            graph.add(b)
            graph.add(c)
            graph.addListener(listener)
    
            then:
            1 * listener.onDiscovered(b)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/ModelMaps.java

            Cast.uncheckedCast(ModelType.of(ChildNodeInitializerStrategy.class));
    
        public static <T> MutableModelNode addModelMapNode(MutableModelNode modelNode, ModelType<T> elementModelType, String name) {
            modelNode.addLink(
                ModelRegistrations.of(modelNode.getPath().child(name))
                    .action(ModelActionRole.Create, NODE_INITIALIZER_REGISTRY_MODEL_REFERENCE, new BiAction<MutableModelNode, NodeInitializerRegistry>() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/RegistrySpec.groovy

                super(null, registration)
            }
    
            @Override
            Iterable<? extends ModelNodeInternal> getLinks() {
                return links
            }
    
            ModelNodeInternal addLink(ModelNodeInternal node) {
                links << node
                return node
            }
    
            @Override
            def <T> ModelView<? extends T> asMutable(ModelType<T> type, ModelRuleDescriptor ruleDescriptor) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/model/collection/internal/BridgedCollections.java

                                            }
                                        }))
                                        .build();
                                    containerNode.addLink(itemRegistration);
                                }
                            }
                        });
                        container.whenObjectRemovedInternal(new Action<I>() {
                            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 20 10:28:05 UTC 2020
    - 5.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/DefaultModelRegistryTest.groovy

            mutatorAction.execute(_) >> { MutableModelNode node ->
                node.addLink("foo.bar") { it.descriptor("create foo.bar as String").unmanaged("12") }
                node.addLink("foo.bar") { it.descriptor("create foo.bar as Integer").unmanaged(12) }
            }
    
            when:
            registry.realize("foo")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 56K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/MutableModelNode.java

         *
         * The path returned by {@link ModelRegistration#getPath()} is used to determine the name of the link.
         */
        void addLink(ModelRegistration registration);
    
        /**
         * Removes a node linked from this node from the graph.
         */
        void removeLink(String name);
    
        /**
         * Applies an action to this node.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/NodeBackedModelSet.java

                .descriptor(descriptor)
                .action(ModelActionRole.Initialize, NoInputsModelAction.of(ModelReference.of(childPath, elementType), descriptor, action))
                .build();
    
            modelNode.addLink(registration);
        }
    
        @Override
        public void afterEach(Action<? super T> configAction) {
            state.assertCanMutate();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:36 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/NodeBackedModelMap.java

                ManagedInstance target = (ManagedInstance) instance;
                modelNode.addReference(name, target.getManagedType(), target.getBackingNode(), descriptor);
            } else {
                modelNode.addLink(
                    ModelRegistrations.unmanagedInstance(
                        ModelReference.of(modelNode.getPath().child(name), type),
                        Factories.constant(instance)
                    )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 23K bytes
    - Viewed (0)
Back to top