spring-framework / org.springframework.context.support / StaticApplicationContext / registerSingleton

registerSingleton

open fun registerSingleton(name: String, clazz: Class<*>): Unit
open fun registerSingleton(name: String, clazz: Class<*>, pvs: MutablePropertyValues): Unit

Register a singleton bean with the underlying bean factory.

For more advanced needs, register with the underlying BeanFactory directly.

See Also
#getDefaultListableBeanFactory