A - An annotation type@Indexed(value=CustomScope.class) public interface CustomScope<A extends java.lang.annotation.Annotation>
BeanContext.Scope| Modifier and Type | Method and Description | 
|---|---|
java.lang.Class<A> | 
annotationType()  | 
default <T> java.util.Optional<BeanRegistration<T>> | 
findBeanRegistration(T bean)
Get the  
BeanDefinition for the given bean. | 
<T> T | 
getOrCreate(BeanCreationContext<T> creationContext)
Resolve an object from the given scope. 
 | 
<T> java.util.Optional<T> | 
remove(BeanIdentifier identifier)
Remove a bean definition from the scope. 
 | 
java.lang.Class<A> annotationType()
<T> T getOrCreate(BeanCreationContext<T> creationContext)
T - The bean generic typecreationContext - The creation context<T> java.util.Optional<T> remove(BeanIdentifier identifier)
T - The generic typeidentifier - The BeanIdentifierOptional of the instance that was destroyed if it existsdefault <T> java.util.Optional<BeanRegistration<T>> findBeanRegistration(T bean)
BeanDefinition for the given bean.T - The bean generic typebean - The bean