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

com.github.nill14.utils.init.api.IScopeContext Maven / Gradle / Ivy

The newest version!
package com.github.nill14.utils.init.api;

import javax.inject.Provider;

public interface IScopeContext {
	
	static IScopeContext none() {
		return new IScopeContext() {

			@Override
			public  Provider scope(BindingKey type, Provider unscoped) {
				throw new UnsupportedOperationException();
			}

			@Override
			public boolean isSupported() {
				return false;
			}
		};
	}
	
	default boolean isSupported() {
		return true;
	}

	 Provider scope(BindingKey type, Provider unscoped);

}







© 2015 - 2025 Weber Informatics LLC | Privacy Policy