Class FallbackBeanInstanceProducer
- java.lang.Object
-
- org.hibernate.resource.beans.internal.FallbackBeanInstanceProducer
-
- All Implemented Interfaces:
BeanInstanceProducer
public class FallbackBeanInstanceProducer extends Object implements BeanInstanceProducer
BeanInstanceProducer
implementation based on direct instantiation. Usually, this is used when either:- there is no configured back-end container, or
- the back-end container did not define a bean for this class.
-
-
Field Summary
Fields Modifier and Type Field Description static FallbackBeanInstanceProducer
INSTANCE
Singleton access
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <B> B
produceBeanInstance(Class<B> beanType)
Produce a bean instance<B> B
produceBeanInstance(String name, Class<B> beanType)
Produce a named bean instance
-
-
-
Field Detail
-
INSTANCE
public static final FallbackBeanInstanceProducer INSTANCE
Singleton access
-
-
Method Detail
-
produceBeanInstance
public <B> B produceBeanInstance(Class<B> beanType)
Description copied from interface:BeanInstanceProducer
Produce a bean instance- Specified by:
produceBeanInstance
in interfaceBeanInstanceProducer
- Parameters:
beanType
- The Java type of bean to produce
-
produceBeanInstance
public <B> B produceBeanInstance(String name, Class<B> beanType)
Description copied from interface:BeanInstanceProducer
Produce a named bean instance- Specified by:
produceBeanInstance
in interfaceBeanInstanceProducer
- Parameters:
name
- The bean namebeanType
- The Java type that the produced bean should be typed as
-
-