spring-framework / org.springframework.beans.factory.config / ServiceLocatorFactoryBean / setServiceMappings

setServiceMappings

open fun setServiceMappings(serviceMappings: Properties): Unit

Set mappings between service ids (passed into the service locator) and bean names (in the bean factory). Service ids that are not defined here will be treated as bean names as-is.

The empty string as service id key defines the mapping for null and empty string, and for factory methods without parameter. If not defined, a single matching bean will be retrieved from the bean factory.

Parameters

serviceMappings - mappings between service ids and bean names, with service ids as keys as bean names as values