public class DefaultCustomScopeRegistry extends java.lang.Object implements CustomScopeRegistry
CustomScopeRegistry interface.| Modifier | Constructor and Description |
|---|---|
protected |
DefaultCustomScopeRegistry(BeanLocator beanLocator) |
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.Optional<BeanRegistration<T>> |
findBeanRegistration(T bean)
Finds A bean registration amongst the active scopes.
|
java.util.Optional<CustomScope<?>> |
findDeclaredScope(Argument<?> argument)
Finds the declared scope for the given argument.
|
java.util.Optional<CustomScope<?>> |
findDeclaredScope(BeanType<?> beanType)
Finds the declared scope for the given bean type.
|
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.
|
protected DefaultCustomScopeRegistry(BeanLocator beanLocator)
beanLocator - The bean locatorpublic <T> java.util.Optional<BeanRegistration<T>> findBeanRegistration(T bean)
CustomScopeRegistryfindBeanRegistration in interface CustomScopeRegistryT - The bean typebean - The beanpublic java.util.Optional<CustomScope<?>> findDeclaredScope(@NonNull Argument<?> argument)
CustomScopeRegistryfindDeclaredScope in interface CustomScopeRegistryargument - The argumentpublic java.util.Optional<CustomScope<?>> findDeclaredScope(@NonNull BeanType<?> beanType)
CustomScopeRegistryfindDeclaredScope in interface CustomScopeRegistrybeanType - The bean typepublic java.util.Optional<CustomScope<?>> findScope(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation)
CustomScopeRegistryfindScope in interface CustomScopeRegistryscopeAnnotation - The scope annotationpublic java.util.Optional<CustomScope<?>> findScope(java.lang.String scopeAnnotation)
CustomScopeRegistryfindScope in interface CustomScopeRegistryscopeAnnotation - The scope annotation