All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.fabricator.guice.SettableInjector Maven / Gradle / Ivy

There is a newer version: 0.28.0
Show newest version
package com.netflix.fabricator.guice;

import java.lang.annotation.Annotation;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.google.inject.Binding;
import com.google.inject.Injector;
import com.google.inject.Key;
import com.google.inject.MembersInjector;
import com.google.inject.Module;
import com.google.inject.Provider;
import com.google.inject.Scope;
import com.google.inject.TypeLiteral;
import com.google.inject.spi.TypeConverterBinding;

public class SettableInjector implements Injector {

    private Injector injector;
    
    @Override
    public void injectMembers(Object instance) {
        injector.injectMembers(instance);
    }

    @Override
    public  MembersInjector getMembersInjector(TypeLiteral typeLiteral) {
        return injector.getMembersInjector(typeLiteral);
    }

    @Override
    public  MembersInjector getMembersInjector(Class type) {
        return injector.getMembersInjector(type);
    }

    @Override
    public Map, Binding> getBindings() {
        return injector.getBindings();
    }

    @Override
    public Map, Binding> getAllBindings() {
        return injector.getAllBindings();
    }

    @Override
    public  Binding getBinding(Key key) {
        return injector.getBinding(key);
    }

    @Override
    public  Binding getBinding(Class type) {
        return injector.getBinding(type);
    }

    @Override
    public  Binding getExistingBinding(Key key) {
        return injector.getExistingBinding(key);
    }

    @Override
    public  List> findBindingsByType(TypeLiteral type) {
        return injector.findBindingsByType(type);
    }

    @Override
    public  Provider getProvider(Key key) {
        return injector.getProvider(key);
    }

    @Override
    public  Provider getProvider(Class type) {
        return injector.getProvider(type);
    }

    @Override
    public  T getInstance(Key key) {
        return injector.getInstance(key);
    }

    @Override
    public  T getInstance(Class type) {
        return injector.getInstance(type);
    }

    @Override
    public Injector getParent() {
        return injector.getParent();
    }

    @Override
    public Injector createChildInjector(Iterable modules) {
        return injector.createChildInjector(modules);
    }

    @Override
    public Injector createChildInjector(Module... modules) {
        return injector.createChildInjector(modules);
    }

    @Override
    public Map, Scope> getScopeBindings() {
        return injector.getScopeBindings();
    }

    @Override
    public Set getTypeConverterBindings() {
        return injector.getTypeConverterBindings();
    }

    public void set(Injector injector) {
        this.injector = injector;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy