public class PrototypeScopedFactoryBean<T> extends GenericScopedFactoryBean<T>
ScopedFactoryBean for beans of the PrototypeScopedFactoryBeanHandler.PROTOTYPE_SCOPE-scope.| Modifier and Type | Method and Description |
|---|---|
static <T> PrototypeScopedFactoryBean<T> |
prototype(java.lang.Class<T> type,
java8.util.function.Supplier<T> producer)
Creates a new
PrototypeScopedFactoryBean to produce a bean of the given type using the given producer. |
getBeanType, getScope, produceBeanpublic static <T> PrototypeScopedFactoryBean<T> prototype(java.lang.Class<T> type, java8.util.function.Supplier<T> producer)
PrototypeScopedFactoryBean to produce a bean of the given type using the given producer.T - the type of bean producedtype - the type of bean producedproducer - the producer to create new beansPrototypeScopedFactoryBean