use of org.gradle.api.internal.DynamicPropertyNamer in project gradle by gradle.
the class DefaultDomainObjectCollectionFactory method container.
private <T> NamedDomainObjectContainer<T> container(Class<T> elementType, InstanceGenerator elementInstantiator) {
ReflectiveNamedDomainObjectFactory<T> objectFactory = new ReflectiveNamedDomainObjectFactory<T>(elementType, elementInstantiator);
Instantiator instantiator = instantiatorFactory.decorateLenient();
return Cast.uncheckedCast(instantiator.newInstance(FactoryNamedDomainObjectContainer.class, elementType, instantiator, new DynamicPropertyNamer(), objectFactory, mutationGuard, collectionCallbackActionDecorator));
}
Aggregations