- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for ModelSchemaExtractionContext (0.33 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/JdkValueTypeStrategy.java
import org.gradle.model.internal.type.ModelType; public class JdkValueTypeStrategy implements ModelSchemaExtractionStrategy { @Override public <R> void extract(ModelSchemaExtractionContext<R> extractionContext) { ModelType<R> type = extractionContext.getType(); if (ScalarTypes.isScalarType(type)) { extractionContext.found(new ScalarValueSchema<R>(type)); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/RuleSourceSchemaExtractionStrategy.java
} @Override protected boolean isTarget(ModelType<?> type) { return RULE_SOURCE_MODEL_TYPE.isAssignableFrom(type); } @Override protected <R> ModelSchema<R> createSchema(ModelSchemaExtractionContext<R> extractionContext, Iterable<ModelProperty<?>> properties, Set<WeaklyTypeReferencingMethod<?, ?>> nonPropertyMethods, Iterable<ModelSchemaAspect> aspects) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/DefaultModelSchemaExtractorTest.groovy
1 * strategy.extract(_) >> { ModelSchemaExtractionContext extractionContext -> assert extractionContext.type == ModelType.of(CustomThing) extractionContext.child(ModelType.of(UnmanagedThing), "child") extractionContext.found(new ScalarValueSchema<CustomThing>(extractionContext.type)) } 1 * strategy.extract(_) >> { ModelSchemaExtractionContext extractionContext ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 29.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/EnumStrategy.java
import org.gradle.model.internal.type.ModelType; public class EnumStrategy implements ModelSchemaExtractionStrategy { @Override public <T> void extract(ModelSchemaExtractionContext<T> extractionContext) { ModelType<T> type = extractionContext.getType(); if (type.getRawClass().isEnum()) { extractionContext.found(new ScalarValueSchema<T>(type)); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ModelSchemaAspectExtractionStrategy.java
import javax.annotation.Nullable; import java.util.List; @ServiceScope(Scope.Global.class) public interface ModelSchemaAspectExtractionStrategy { @Nullable ModelSchemaAspectExtractionResult extract(ModelSchemaExtractionContext<?> extractionContext, List<ModelPropertyExtractionResult<?>> propertyResults);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 1.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ManagedImplStructStrategy.java
} @Override protected boolean isTarget(ModelType<?> type) { return type.isAnnotationPresent(Managed.class); } @Override protected <R> ModelSchema<R> createSchema(ModelSchemaExtractionContext<R> extractionContext, Iterable<ModelProperty<?>> properties, Set<WeaklyTypeReferencingMethod<?, ?>> nonPropertyMethods, Iterable<ModelSchemaAspect> aspects) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/PrimitiveStrategy.java
import static org.gradle.model.internal.manage.schema.extract.PrimitiveTypes.isPrimitiveType; public class PrimitiveStrategy implements ModelSchemaExtractionStrategy { @Override public <T> void extract(ModelSchemaExtractionContext<T> extractionContext) { ModelType<T> type = extractionContext.getType(); if (isPrimitiveType(type)) { extractionContext.found(new ScalarValueSchema<T>(type)); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ModelSchemaAspectExtractor.java
public ModelSchemaAspectExtractor(Collection<ModelSchemaAspectExtractionStrategy> strategies) { this.strategies = ImmutableList.copyOf(strategies); } public <T> List<ModelSchemaAspect> extract(ModelSchemaExtractionContext<T> extractionContext, List<ModelPropertyExtractionResult<?>> propertyResults) { List<ModelSchemaAspect> aspects = new ArrayList<>(); for (ModelSchemaAspectExtractionStrategy strategy : strategies) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 1.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/UnmanagedImplStructStrategy.java
// Everything is an unmanaged struct that hasn't been handled before return true; } @Override protected <R> ModelSchema<R> createSchema(ModelSchemaExtractionContext<R> extractionContext, Iterable<ModelProperty<?>> properties, Set<WeaklyTypeReferencingMethod<?, ?>> nonPropertyMethods, Iterable<ModelSchemaAspect> aspects) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/DefaultModelSchemaExtractionContext.java
import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; public class DefaultModelSchemaExtractionContext<T> implements ModelSchemaExtractionContext<T> { private final DefaultModelSchemaExtractionContext<?> parent; private final ModelType<T> type; private final String description; private final Action<? super ModelSchema<T>> validator;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 4.2K bytes - Viewed (0)