You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: framework-docs/modules/ROOT/pages/core/beans/definition.adoc
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,54 @@ supports this registration through the `registerSingleton(..)` and `registerBean
63
63
methods. However, typical applications work solely with beans defined through regular
64
64
bean definition metadata.
65
65
66
+
[[beans-factory-register-singleton]]
67
+
=== Registering an Existing Object as a Singleton Bean
68
+
69
+
In some cases, you might need to register an object that was created outside of the Spring container as a bean. You can achieve this using the `ConfigurableListableBeanFactory`:
0 commit comments