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

com.github.ruediste.salta.standard.ScopeRule Maven / Gradle / Ivy

Go to download

Core of the Salta Framework. Provides most of the infrastructure, but no API

There is a newer version: 1.1
Show newest version
package com.github.ruediste.salta.standard;

import com.github.ruediste.salta.core.Scope;
import com.github.ruediste.salta.standard.config.StandardInjectorConfiguration;
import com.google.common.reflect.TypeToken;

/**
 * Rule to determine the Scope for a type
 */
public interface ScopeRule {

	/**
	 * If null is returned, the next rule is evaluated. If all rules fail, the
	 * {@link StandardInjectorConfiguration#scopeAnnotationMap} is evaluated. If
	 * still no scope is found, the
	 * {@link StandardInjectorConfiguration#defaultScope} is used.
	 */
	Scope getScope(TypeToken type);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy