Interface RuntimeBeanDefinition.Builder<B>

    • Method Detail

      • 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