- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for withServices (0.29 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DefaultInstantiationSchemeTest.groovy
def "can specify a set of services to inject"() { def services = Mock(ServiceLookup) _ * services.get(String) >> "value" when: def value = scheme.withServices(services).instantiator().newInstance(WithServices) then: value.prop == "value" } def "can create instances without invoking their constructor to use for deserialization"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DefaultInstantiatorFactory.java
return decoratingLenientScheme.withServices(services).instantiator(); } @Override public InstantiationScheme decorateScheme() { return decoratingScheme; } @Override public InstanceGenerator decorate(ServiceLookup services) { return decoratingScheme.withServices(services).instantiator(); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 8.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/InstantiationScheme.java
/** * Creates a new {@link InstantiationScheme} which creates instances using the given services, based on the configuration of this scheme. */ InstantiationScheme withServices(ServiceLookup services); /** * Returns the instantiator which creates instances using a default set of services, based on the configuration of this scheme. */ InstanceGenerator instantiator();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/service/scopes/ProjectScopeServices.java
DefaultPluginManager.class, get(PluginRegistry.class), new PluginInstantiator( instantiatorFactory.injectScheme().withServices(this).instantiator(), pluginScheme.getInstantiationScheme().withServices(this).instantiator() ), pluginTarget, buildOperationRunner, userCodeApplicationContext, decorator,
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 09:21:42 UTC 2024 - 18.3K bytes - Viewed (0) -
platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/FlowScheduler.kt
instantiatorFactory: InstantiatorFactory, serviceRegistry: ServiceRegistry, ) { private val instantiator by lazy { instantiatorFactory .injectScheme() .withServices(injectableServicesOf(serviceRegistry)) .instantiator() } fun schedule(scheduled: List<RegisteredFlowAction>) { scheduled.forEach { flowAction -> instantiator
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 15:01:34 UTC 2024 - 2.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultValueSourceProviderFactory.java
// TODO - dedupe logic copied from DefaultBuildServicesRegistry this.paramsInstantiator = instantiatorFactory.decorateScheme().withServices(services).instantiator(); this.specInstantiator = instantiatorFactory.decorateLenientScheme().withServices(services).instantiator(); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 18 08:26:25 UTC 2024 - 14.1K bytes - Viewed (0) -
platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanPropertyReader.kt
} override fun ReadContext.newBean(generated: Boolean): Any = if (generated) { val services = ownerService<ServiceRegistry>() instantiationScheme.withServices(services).deserializationInstantiator().newInstance(beanType, Any::class.java) } else { constructorForSerialization.newInstance() } override suspend fun ReadContext.readStateOf(bean: Any) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 3.5K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/services/internal/DefaultBuildServicesRegistry.java
this.isolatableFactory = isolatableFactory; this.leaseRegistry = leaseRegistry; this.paramsInstantiator = instantiatorFactory.decorateScheme().withServices(services).instantiator(); this.specInstantiator = instantiatorFactory.decorateLenientScheme().withServices(services).instantiator(); this.listener = listener; listenerManager.addListener(new ServiceCleanupListener()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 06 19:15:45 UTC 2024 - 16.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DefaultInstantiationScheme.java
} @Override public <T> InstanceFactory<T> forType(Class<T> type) { return instantiator.factoryFor(type); } @Override public InstantiationScheme withServices(ServiceLookup services) { return new DefaultInstantiationScheme(constructorSelector, classGenerator, services, injectionAnnotations, deserializationConstructorCache); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/DefaultVariantTransformRegistry.java
try { Class<T> parameterType = isolationScheme.parameterTypeFor(actionType); T parameterObject = parameterType == null ? null : parametersInstantiationScheme.withServices(services).instantiator().newInstance(parameterType); registration = Cast.uncheckedNonnullCast(instantiatorFactory.decorateLenient().newInstance(TypedRegistration.class, parameterObject, immutableAttributesFactory));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 8.3K bytes - Viewed (0)