BeanRegistry class abstract interface

Where a BeanRegistrar registers its beans: a short API that turns each call into a bean definition of the context.

A registrar receives it in BeanRegistrar.register; you do not create one. AnnotationConfigApplicationContext.registerBean offers the same options outside a registrar.

Spring (Java): Spring 7's BeanRegistry.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(BeanRegistrar registrar) → void
Runs another registrar on this registry, to compose registrars.
registerAlias(String name, String alias) → void
Makes the bean name also available as alias.
registerBean<T extends Object>(T supplier(DependencyResolver context), {String? name, List<Type>? types, String scope = ScopeType.singleton, bool lazy = false, bool primary = false, bool fallback = false, bool autowireCandidate = true, bool defaultCandidate = true, int? order, String? description, List<String> aliases = const [], List<String> dependsOn = const []}) → String
Registers a bean of type T created by supplier and returns its name.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited