registerStereotypedSingleton

inline fun <T : Any, Q : Annotation> BeanDefinitionRegistry.registerStereotypedSingleton(singleton: T, inject: Boolean): BeanDefinitionRegistry

Extension for BeanDefinitionRegistry.registerSingleton providing a registerStereotypedSingleton<Foo, Bar>(singleton, true) variant.

Return

The BeanDefinitionRegistry

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The bean type

Q

The stereotype type

singleton

The singleton bean

inject

Whether the singleton should be injected


inline fun <T : Any> BeanDefinitionRegistry.registerStereotypedSingleton(singleton: T, name: String, inject: Boolean): BeanDefinitionRegistry

Extension for BeanDefinitionRegistry.registerSingleton providing a registerStereotypedSingleton<Foo, Bar>(singleton, true) variant.

Return

The BeanDefinitionRegistry

Author

James Kleeh

Since

3.0.0

Parameters

T

The bean type

singleton

The singleton bean

name

The name of the stereotype

inject

Whether the singleton should be injected


inline fun <T : Any, Q : Annotation> BeanDefinitionRegistry.registerStereotypedSingleton(singleton: T): BeanDefinitionRegistry

Extension for BeanDefinitionRegistry.registerSingleton providing a registerStereotypedSingleton<Foo, Bar>(singleton) variant.

Return

The BeanDefinitionRegistry

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The bean type

Q

The stereotype type

singleton

The singleton bean


inline fun <T : Any> BeanDefinitionRegistry.registerStereotypedSingleton(singleton: T, name: String): BeanDefinitionRegistry

Extension for BeanDefinitionRegistry.registerSingleton providing a registerStereotypedSingleton<Foo, Bar>(singleton) variant.

Return

The BeanDefinitionRegistry

Author

James Kleeh

Since

3.0.0

Parameters

T

The bean type

singleton

The singleton bean

name

The stereotype name