cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r952012 - in /cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi: ConstructorInjectingProvidersProvider.java DefaultBindingBuilder.java MembersInjector.java
Date Sun, 06 Jun 2010 22:11:24 GMT
Author: aadamchik
Date: Sun Jun  6 22:11:23 2010
New Revision: 952012

URL: http://svn.apache.org/viewvc?rev=952012&view=rev
Log:
DI refactoring

* allow constructor injection in providers
* deleting unused MembersInjector

Removed:
    cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/ConstructorInjectingProvidersProvider.java
    cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/MembersInjector.java
Modified:
    cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/DefaultBindingBuilder.java

Modified: cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/DefaultBindingBuilder.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/DefaultBindingBuilder.java?rev=952012&r1=952011&r2=952012&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/DefaultBindingBuilder.java
(original)
+++ cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/DefaultBindingBuilder.java
Sun Jun  6 22:11:23 2010
@@ -65,8 +65,9 @@ class DefaultBindingBuilder<T> implement
     public BindingBuilder<T> toProvider(
             Class<? extends Provider<? extends T>> providerType) {
 
-        Provider<Provider<? extends T>> provider0 = new ConstructorInjectingProvidersProvider<T>(
-                providerType);
+        Provider<Provider<? extends T>> provider0 = new ConstructorInjectingProvider<Provider<?
extends T>>(
+                providerType,
+                injector);
         Provider<Provider<? extends T>> provider1 = new FieldInjectingProvider<Provider<?
extends T>>(
                 provider0,
                 injector,



Mime
View raw message