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