toothpick-runtime / toothpick / ScopeNode / supportScopeAnnotation

supportScopeAnnotation

open fun supportScopeAnnotation(scopeAnnotationClass: Class<out Annotation>): Scope

Binds a scopeAnnotationClass, to the current scope. The current scope will accept all classes that are scoped using this scopeAnnotationClass.

Parameters

scopeAnnotationClass - an annotation that should be qualified by . If not, an exception is thrown. Note that the Singleton scope annotation class doesn't need to be explicitely supported, it's built-in, and supported by all root scopes (scopes without parent).

See Also
#getParentScope(Class)