public class FallbackBeanInstanceProducer extends Object implements BeanInstanceProducer
Modifier and Type | Field and Description |
---|---|
static FallbackBeanInstanceProducer |
INSTANCE
Singleton access
|
Modifier and Type | Method and Description |
---|---|
<B> B |
produceBeanInstance(Class<B> beanType)
Produce a bean instance
|
<B> B |
produceBeanInstance(String name,
Class<B> beanType)
Produce a named bean instance
|
public static final FallbackBeanInstanceProducer INSTANCE
public <B> B produceBeanInstance(Class<B> beanType)
BeanInstanceProducer
produceBeanInstance
in interface BeanInstanceProducer
beanType
- The Java type of bean to producepublic <B> B produceBeanInstance(String name, Class<B> beanType)
BeanInstanceProducer
produceBeanInstance
in interface BeanInstanceProducer
name
- The bean namebeanType
- The Java type that the produced bean should be typed asCopyright © 2019 JBoss by Red Hat. All rights reserved.