Top Description Methods
org.hibernate.resource.beans.spi

public Interface BeanInstanceProducer

Known Direct Implementers
org.hibernate.boot.model.TypeBeanInstanceProducer, org.hibernate.resource.beans.internal.FallbackBeanInstanceProducer

Contract for producing a bean instance
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public <B> B
produceBeanInstance(Class<B>
The Java type of bean to produce
beanType
)

Produce a bean instance

public <B> B
produceBeanInstance(String
The bean name
name
,
Class<B>
The Java type that the produced bean should be typed as
beanType
)

Produce a named bean instance

Method Detail

produceBeanInstanceback to summary
public <B> B produceBeanInstance(Class<B> beanType)

Produce a bean instance

Parameters
beanType:Class<B>

The Java type of bean to produce

produceBeanInstanceback to summary
public <B> B produceBeanInstance(String name, Class<B> beanType)

Produce a named bean instance

Parameters
name:String

The bean name

beanType:Class<B>

The Java type that the produced bean should be typed as