- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for DependencyInjectingInstantiator (0.43 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DependencyInjectingInstantiator.java
*/ class DependencyInjectingInstantiator implements InstanceGenerator { private static final DefaultServiceRegistry NO_SERVICES = new DefaultServiceRegistry("registry with no services"); private final ServiceLookup services; private final ConstructorSelector constructorSelector; public DependencyInjectingInstantiator(ConstructorSelector constructorSelector, ServiceLookup services) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 9.5K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/DependencyInjectingServiceLoader.java
/** * Lazily instantiates the available service type providers. */ public <T> Iterable<T> load(Class<T> serviceType, ClassLoader classLoader) { final Instantiator instantiator = dependencyInjectingInstantiator(); return transform( implementationsOf(serviceType, classLoader), new Function<Class<? extends T>, T>() { @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 27 06:24:30 UTC 2018 - 2.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DefaultInstantiationScheme.java
import java.lang.annotation.Annotation; import java.lang.reflect.InvocationTargetException; import java.util.Set; class DefaultInstantiationScheme implements InstantiationScheme { private final DependencyInjectingInstantiator instantiator; private final ConstructorSelector constructorSelector; private final Set<Class<? extends Annotation>> injectionAnnotations;
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/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy
final CrossBuildInMemoryCache cache = new TestCrossBuildInMemoryCacheFactory().newCache() final ServiceLookup services = new DefaultServiceRegistry() final DependencyInjectingInstantiator instantiator = new DependencyInjectingInstantiator(new Jsr330ConstructorSelector(classGenerator, cache), services) def setup() { services.add(InstantiatorFactory, TestUtil.instantiatorFactory()) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AbstractClassGeneratorSpec.groovy
protected <T> T doCreate(ClassGenerator generator, Class<T> clazz, ServiceLookup services, @Nullable Describable displayName, Object[] args) { generator.generate(clazz) def instantiator = new DependencyInjectingInstantiator(new ParamsMatchingConstructorSelector(generator), services) if (displayName == null) { return instantiator.newInstance(clazz, args) } else {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DependencyInjectionUsingLenientConstructorSelectorTest.groovy
class DependencyInjectionUsingLenientConstructorSelectorTest extends Specification { def services = Mock(ServiceLookup) def classGenerator = new IdentityClassGenerator() def instantiator = new DependencyInjectingInstantiator(new ParamsMatchingConstructorSelector(classGenerator), services) def "creates instance that has default constructor"() { when: def result = instantiator.newInstance(HasDefaultConstructor)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DependencyInjectingInstantiatorTest.groovy
import javax.inject.Inject class DependencyInjectingInstantiatorTest extends Specification { def services = Mock(ServiceLookup) def classGenerator = new IdentityClassGenerator() def instantiator = new DependencyInjectingInstantiator(new Jsr330ConstructorSelector(classGenerator, new TestCrossBuildInMemoryCacheFactory.TestCache()), services) def "creates instance that has default constructor"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 19 04:41:06 UTC 2024 - 13.2K bytes - Viewed (0) -
testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt
Class <org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator$1> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (DependencyInjectingInstantiator.java:0) Class <org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (DependencyInjectingInstantiator.java:0)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 967.9K bytes - Viewed (0)