Package org.hibernate.resource.beans.spi
Interface BeanInstanceProducer
- All Known Implementing Classes:
FallbackBeanInstanceProducer
,TypeBeanInstanceProducer
public interface BeanInstanceProducer
Contract for producing a bean instance
-
Method Summary
Modifier and TypeMethodDescription<B> B
produceBeanInstance
(Class<B> beanType) Produce a bean instance<B> B
produceBeanInstance
(String name, Class<B> beanType) Produce a named bean instance
-
Method Details
-
produceBeanInstance
Produce a bean instance- Parameters:
beanType
- The Java type of bean to produce
-
produceBeanInstance
Produce a named bean instance- Parameters:
name
- The bean namebeanType
- The Java type that the produced bean should be typed as
-