fixed final issues with AW proxy integration and remaining tests
This commit is contained in:
parent
e0591005ed
commit
bbec315eb2
29 changed files with 933 additions and 866 deletions
|
|
@ -24,7 +24,9 @@ public class ActiveObjectGuiceModule extends AbstractModule {
|
|||
bind(ResourceProviderFactory.class);
|
||||
for (int i = 0; i < bindings.size(); i++) {
|
||||
final DependencyBinding db = bindings.get(i);
|
||||
bind((Class) db.getInterface()).to((Class) db.getTarget()).in(Singleton.class);
|
||||
//if (db.getInterface() != null) bind((Class) db.getInterface()).to((Class) db.getTarget()).in(Singleton.class);
|
||||
//else
|
||||
this.bind(db.getInterface()).toInstance(db.getTarget());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ package se.scalablesolutions.akka.kernel.config;
|
|||
*/
|
||||
public class DependencyBinding {
|
||||
private final Class intf;
|
||||
private final Class target;
|
||||
private final Object target;
|
||||
|
||||
public DependencyBinding(final Class intf, final Class target) {
|
||||
public DependencyBinding(final Class intf, final Object target) {
|
||||
this.intf = intf;
|
||||
this.target = target;
|
||||
}
|
||||
public Class getInterface() {
|
||||
return intf;
|
||||
}
|
||||
public Class getTarget() {
|
||||
public Object getTarget() {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue