Package org.hibernate.boot.internal
Class TypeBeanInstanceProducer
java.lang.Object
org.hibernate.boot.internal.TypeBeanInstanceProducer
- All Implemented Interfaces:
BeanInstanceProducer,TypeBootstrapContext
@Internal
public class TypeBeanInstanceProducer
extends Object
implements BeanInstanceProducer, TypeBootstrapContext
BeanInstanceProducer implementation for building beans related to custom types.-
Constructor Summary
ConstructorsConstructorDescriptionTypeBeanInstanceProducer(ConfigurationService configurationService, ServiceRegistry serviceRegistry) -
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
-
Constructor Details
-
TypeBeanInstanceProducer
public TypeBeanInstanceProducer(ConfigurationService configurationService, ServiceRegistry serviceRegistry)
-
-
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
-
getConfigurationSettings
- Specified by:
getConfigurationSettingsin interfaceTypeBootstrapContext
-
getServiceRegistry
- Specified by:
getServiceRegistryin interfaceTypeBootstrapContext
-