Class FallbackBeanInstanceProducer
java.lang.Object
org.hibernate.resource.beans.internal.FallbackBeanInstanceProducer
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescription<B> BproduceBeanInstance(Class<B> beanType) Produce a bean instance<B> BproduceBeanInstance(String name, Class<B> beanType) Produce a named bean instance
-
Field Details
-
INSTANCE
Singleton access
-
-
Method Details
-
produceBeanInstance
Description copied from interface:BeanInstanceProducerProduce a bean instance- Specified by:
produceBeanInstancein interfaceBeanInstanceProducer- Parameters:
beanType- The Java type of bean to produce
-
produceBeanInstance
Description copied from interface:BeanInstanceProducerProduce a named bean instance- Specified by:
produceBeanInstancein interfaceBeanInstanceProducer- Parameters:
name- The bean namebeanType- The Java type that the produced bean should be typed as
-