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

play.inject.DelegateInjector Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2009-2016 Lightbend Inc. 
 */
package play.inject;

import play.api.inject.BindingKey;

import javax.inject.Inject;
import javax.inject.Singleton;

@Singleton
public class DelegateInjector implements Injector {
    public final play.api.inject.Injector injector;

    @Inject
    public DelegateInjector(play.api.inject.Injector injector) {
        this.injector = injector;
    }

    @Override
    public  T instanceOf(Class clazz) {
        return injector.instanceOf(clazz);
    }

    @Override
    public  T instanceOf(BindingKey key) {
        return injector.instanceOf(key);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy