- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 64 for ModelRegistry (0.52 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/ModelRegistry.java
*/ void bindAllReferences() throws UnboundModelRulesException; ModelRegistry register(ModelRegistration registration); /** * Bind the given action directly to its subject node in the given role. Calling {@link #bindAllReferences()} fails * if the subject of the action is not matched by any node. */ ModelRegistry configure(ModelActionRole role, ModelAction action); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/model/internal/fixture/ModelRegistryHelperExtension.java
return configure(modelRegistry, Mutate, definition); } public static <T> ModelRegistry mutate(ModelRegistry modelRegistry, Class<T> type, Action<? super T> action) { return applyInternal(modelRegistry, Mutate, type, action); } public static <T> ModelRegistry mutate(ModelRegistry modelRegistry, ModelType<T> type, Action<? super T> action) { return applyInternal(modelRegistry, Mutate, type, 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) -
platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/toolchains/DefaultToolChainSelector.java
import javax.inject.Inject; public class DefaultToolChainSelector implements ToolChainSelector { private final ModelRegistry modelRegistry; private DefaultNativePlatform host; @Inject public DefaultToolChainSelector(ModelRegistry modelRegistry) { this.modelRegistry = modelRegistry; this.host = DefaultNativePlatform.host(); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 6.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/MutationRuleExecutionOrderTest.groovy
def "binding order does not affect mutation rule execution order"() { when: modelRegistry.getRoot().applyToSelf(MutationRulesWithInputs) modelRegistry.getRoot().applyToSelf(SecondInputCreationRule) modelRegistry.getRoot().applyToSelf(FirstInputCreationRule) then: modelRegistry.get("recorder", MutationRecorder).mutations == ["first", "second"] }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3.5K bytes - Viewed (0) -
platforms/software/platform-base/src/testFixtures/groovy/org/gradle/test/fixtures/BaseInstanceFixtureSupport.groovy
String name, Closure<I> createUnmanagedInstance) { def modelRegistry = new ModelRegistryHelper() modelRegistry.registerInstance("nodeInitializerRegistry", ProjectRegistrySpec.NODE_INITIALIZER_REGISTRY) def publicTypeSchema = (StructSchema<T>) SCHEMA_STORE.getSchema(publicType)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 3.1K bytes - Viewed (0) -
subprojects/diagnostics/src/main/java/org/gradle/api/reporting/dependents/DependentComponentsReport.java
// Cross-project ModelRegistry operations do not happen concurrently. synchronized (DependentComponentsReport.class) { ((ProjectInternal) getProject()).getOwner().applyToMutableState(project -> { ModelRegistry modelRegistry = getModelRegistry();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 7.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/ExtractedRuleSource.java
import org.gradle.model.internal.core.MutableModelNode; import org.gradle.model.internal.registry.ModelRegistry; import java.util.List; public interface ExtractedRuleSource<T> { /** * Applies the rules of this rule source to the given element. */ void apply(ModelRegistry modelRegistry, MutableModelNode target); /** * Returns the set of plugins required by the rules of this rule source.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/NonTransformedModelDslBacking.java
private final ModelPath modelPath; private final ModelRegistry modelRegistry; private final MutableBoolean executingDsl; public NonTransformedModelDslBacking(ModelRegistry modelRegistry) { this(new MutableBoolean(), null, modelRegistry); } private NonTransformedModelDslBacking(MutableBoolean executingDsl, ModelPath modelPath, ModelRegistry modelRegistry) { this.executingDsl = executingDsl;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.8K bytes - Viewed (0) -
subprojects/diagnostics/src/main/java/org/gradle/api/reporting/model/ModelReport.java
textModelReportRenderer.startProject(projectDetails); ModelRegistry modelRegistry = getModelRegistry(); ModelNode rootNode = modelRegistry.realizeNode(ModelPath.ROOT); // Ensure binding validation has been done. This should happen elsewhere modelRegistry.bindAllReferences(); textModelReportRenderer.render(rootNode);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Oct 24 23:13:41 UTC 2022 - 3.8K bytes - Viewed (0) -
platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/TransformedModelDslBacking.java
public TransformedModelDslBacking(ModelRegistry modelRegistry, RelativeFilePathResolver relativeFilePathResolver) { this.modelRegistry = modelRegistry; this.ruleFactory = new ClosureBackedRuleFactory(relativeFilePathResolver); } /** * Invoked by transformed DSL configuration rules */ public void configure(String modelPathString, Closure<?> closure) { ModelPath modelPath = ModelPath.path(modelPathString);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3.9K bytes - Viewed (0)