use of org.gradle.api.internal.DependencyInjectingInstantiator in project gradle by gradle.
the class DefaultIvyArtifactRepository method createDependencyInjectingInstantiator.
/**
* Creates a service registry giving access to the services we want to expose to rules and returns an instantiator that
* uses this service registry.
* @param transport the transport used to create the repository accessor
* @return a dependency injecting instantiator, aware of services we want to expose
*/
private Instantiator createDependencyInjectingInstantiator(final RepositoryTransport transport) {
DefaultServiceRegistry registry = new DefaultServiceRegistry();
registry.addProvider(new Object() {
RepositoryResourceAccessor createResourceAccessor() {
return createRepositoryAccessor(transport);
}
});
return new DependencyInjectingInstantiator(registry, constructorCache);
}
Aggregations