Package io.micronaut.context
Interface RuntimeBeanDefinition.Builder<B>
-
- Type Parameters:
B- The bean type
- Enclosing interface:
- RuntimeBeanDefinition<T>
public static interface RuntimeBeanDefinition.Builder<B>A builder for constructingRuntimeBeanDefinitioninstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RuntimeBeanDefinition.Builder<B>annotationMetadata(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)The annotation metadata for the bean.RuntimeBeanDefinition<B>build()Builds the runtime bean.RuntimeBeanDefinition.Builder<B>exposedTypes(java.lang.Class<?>... types)Limit the exposed types of this bean.default RuntimeBeanDefinition.Builder<B>named(java.lang.String name)The qualifier to use.RuntimeBeanDefinition.Builder<B>qualifier(Qualifier<B> qualifier)The qualifier to use.RuntimeBeanDefinition.Builder<B>scope(java.lang.Class<? extends java.lang.annotation.Annotation> scope)The scope to use.RuntimeBeanDefinition.Builder<B>singleton(boolean isSingleton)Is the bean singleton.
-
-
-
Method Detail
-
qualifier
RuntimeBeanDefinition.Builder<B> qualifier(@Nullable Qualifier<B> qualifier)
The qualifier to use.- Parameters:
qualifier- The qualifier- Returns:
- This builder
-
named
default RuntimeBeanDefinition.Builder<B> named(@Nullable java.lang.String name)
The qualifier to use.- Parameters:
name- The named qualifier to use.- Returns:
- This builder
- Since:
- 3.7.0
-
scope
RuntimeBeanDefinition.Builder<B> scope(@Nullable java.lang.Class<? extends java.lang.annotation.Annotation> scope)
The scope to use.- Parameters:
scope- The scope- Returns:
- This builder
-
singleton
RuntimeBeanDefinition.Builder<B> singleton(boolean isSingleton)
Is the bean singleton.- Parameters:
isSingleton- True if it is singleton- Returns:
- This builder
-
exposedTypes
RuntimeBeanDefinition.Builder<B> exposedTypes(java.lang.Class<?>... types)
Limit the exposed types of this bean.- Parameters:
types- The exposed types- Returns:
- This builder
-
annotationMetadata
RuntimeBeanDefinition.Builder<B> annotationMetadata(@Nullable io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
The annotation metadata for the bean.- Parameters:
annotationMetadata- The annotation metadata- Returns:
- This builder
-
build
@NonNull RuntimeBeanDefinition<B> build()
Builds the runtime bean.- Returns:
- The runtime bean
-
-