Package org.hibernate.boot.model
Class TypeBeanInstanceProducer
- java.lang.Object
-
- org.hibernate.boot.model.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
Constructors Constructor Description TypeBeanInstanceProducer(ConfigurationService configurationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getConfigurationSettings()
<B> B
produceBeanInstance(Class<B> beanType)
Produce a bean instance<B> B
produceBeanInstance(String name, Class<B> beanType)
Produce a named bean instance
-
-
-
Constructor Detail
-
TypeBeanInstanceProducer
public TypeBeanInstanceProducer(ConfigurationService configurationService)
-
-
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
-
getConfigurationSettings
public Map<String,Object> getConfigurationSettings()
- Specified by:
getConfigurationSettings
in interfaceTypeBootstrapContext
-
-