com.github.ruediste.salta.standard.ScopeRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of salta-core Show documentation
Show all versions of salta-core Show documentation
Core of the Salta Framework. Provides most of the infrastructure, but no API
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