
com.github.nill14.utils.init.scope.CallerScope Maven / Gradle / Ivy
The newest version!
package com.github.nill14.utils.init.scope;
import javax.inject.Provider;
import com.github.nill14.utils.init.api.BindingKey;
import com.github.nill14.utils.init.api.IScope;
import com.github.nill14.utils.init.api.IScopeContext;
/**
*
* A scope delegating the scoping onto the calling facility (e.g. a ISession or so)
*
*/
public class CallerScope implements IScope {
@Override
public Provider scope(BindingKey bindingKey, Provider unscoped, IScopeContext scopeContext) {
return scopeContext.scope(bindingKey, unscoped);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy