withBean
Register the specified user bean with the ApplicationContext. The bean name is generated from the configured BeanNameGenerator on the underlying context.
Such beans are registered after regular user configurations in the order of registration.
Return
a new instance with the updated bean
Parameters
the type of the bean
custom argument values to be fed into Spring's constructorresolution algorithm, resolving either all arguments or just specific ones, withthe rest to be resolved through regular autowiring (may be null
or empty)
the type of the bean
Register the specified user bean with the ApplicationContext.
Such beans are registered after regular user configurations in the order of registration.
Return
a new instance with the updated bean
Parameters
the bean name or null
to use a generated name
the type of the bean
custom argument values to be fed into Spring's constructorresolution algorithm, resolving either all arguments or just specific ones, withthe rest to be resolved through regular autowiring (may be null
or empty)
the type of the bean
Register the specified user bean with the ApplicationContext. The bean name is generated from the configured BeanNameGenerator on the underlying context.
Such beans are registered after regular user configurations in the order of registration.
Return
a new instance with the updated bean
Parameters
the type of the bean
a supplier for the bean
one or more callbacks for customizing the factory's BeanDefinition, e.g. setting a lazy-init or primary flag
the type of the bean
Register the specified user bean with the ApplicationContext. The bean name is generated from the configured BeanNameGenerator on the underlying context.
Such beans are registered after regular user configurations in the order of registration.
Return
a new instance with the updated bean
Parameters
the bean name or null
to use a generated name
the type of the bean
a supplier for the bean
one or more callbacks for customizing the factory's BeanDefinition, e.g. setting a lazy-init or primary flag
the type of the bean