public class ActivityScopedFactoryBean<T> extends GenericScopedFactoryBean<T>
ScopedFactoryBean for beans of the ActivityScopedFactoryBeanHandler.ACTIVITY_SCOPE-scope.| Modifier and Type | Method and Description |
|---|---|
static <T> ActivityScopedFactoryBean<T> |
activityScoped(java.lang.Class<T> type,
java8.util.function.Supplier<T> producer)
Creates a new
ActivityScopedFactoryBean to produce a bean of the given type using the given producer. |
getBeanType, getScope, produceBeanpublic static <T> ActivityScopedFactoryBean<T> activityScoped(java.lang.Class<T> type, java8.util.function.Supplier<T> producer)
ActivityScopedFactoryBean 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 beansActivityScopedFactoryBean