public interface CustomScopeRegistry
CustomScope instances.| Modifier and Type | Method and Description | 
|---|---|
default <T> Optional<BeanRegistration<T>> | 
findBeanRegistration(T bean)
Finds A bean registration amongst the active scopes. 
 | 
default Optional<CustomScope<?>> | 
findDeclaredScope(Argument<?> argument)
Finds the declared scope for the given argument. 
 | 
default Optional<CustomScope<?>> | 
findDeclaredScope(BeanType<?> beanType)
Finds the declared scope for the given bean type. 
 | 
default Optional<CustomScope<?>> | 
findScope(Class<? extends Annotation> scopeAnnotation)
Find a custom scope for the given annotation. 
 | 
Optional<CustomScope<?>> | 
findScope(String scopeAnnotation)
Find a custom scope for the given annotation. 
 | 
default Optional<CustomScope<?>> findDeclaredScope(@NonNull Argument<?> argument)
argument - The argumentdefault Optional<CustomScope<?>> findDeclaredScope(@NonNull BeanType<?> beanType)
beanType - The bean typeOptional<CustomScope<?>> findScope(String scopeAnnotation)
scopeAnnotation - The scope annotationdefault Optional<CustomScope<?>> findScope(Class<? extends Annotation> scopeAnnotation)
scopeAnnotation - The scope annotationdefault <T> Optional<BeanRegistration<T>> findBeanRegistration(T bean)
T - The bean typebean - The bean