spring-framework / org.springframework.aop.framework / ProxyFactoryBean / setSingleton

setSingleton

open fun setSingleton(singleton: Boolean): Unit

Set the value of the singleton property. Governs whether this factory should always return the same proxy instance (which implies the same target) or whether it should return a new prototype instance, which implies that the target and interceptors may be new instances also, if they are obtained from prototype bean definitions. This allows for fine control of independence/uniqueness in the object graph.