mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
made wrapping injector provider guice 4 ready
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
parent
34c2846870
commit
bc6d04d382
1 changed files with 2 additions and 1 deletions
|
@ -29,6 +29,7 @@ import com.google.inject.Guice;
|
|||
import com.google.inject.Injector;
|
||||
import com.google.inject.Key;
|
||||
import com.google.inject.Module;
|
||||
import com.google.inject.Stage;
|
||||
import com.google.inject.util.Modules;
|
||||
|
||||
/**
|
||||
|
@ -75,7 +76,7 @@ public class WrappingInjectorProvider implements IInjectorProvider, IRegistryCon
|
|||
public void configure(Binder binder) {
|
||||
for(Binding<?> binding: bindings.values()) {
|
||||
Type typeLiteral = binding.getKey().getTypeLiteral().getType();
|
||||
if (!Injector.class.equals(typeLiteral) && !Logger.class.equals(typeLiteral)) {
|
||||
if (!Injector.class.equals(typeLiteral) && !Logger.class.equals(typeLiteral) && !Stage.class.equals(typeLiteral)) {
|
||||
binding.applyTo(binder);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue