Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for registerInstance (0.17 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/NodeBackedModelMapSpec.groovy

        def "inputs of a rule from an inner source are not realised if the rule is not required"() {
            given:
            def mmType = ModelTypes.modelMap(Bean)
            def events = []
            registry
                .registerInstance("input", "input") { events << "input created" }
                .registerModelMap("beans", Bean) { it.registerFactory(Bean) { new Bean(name: it) } }
                .mutate {
                    it.path "beans" type mmType action { c ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/model/internal/fixture/ModelRegistryHelperExtension.java

            return modelRegistry.node(ModelPath.path(path));
        }
    
        public static <C> ModelRegistry registerInstance(ModelRegistry modelRegistry, String path, final C c) {
            return modelRegistry.register(unmanaged(registration(ModelPath.path(path)), c));
        }
    
        public static <C> ModelRegistry registerInstance(ModelRegistry modelRegistry, String path, final C c, Action<? super C> action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.7K bytes
    - Viewed (0)
Back to top