Top Description Fields Constructors Methods
org.hibernate.resource.beans.internal

public Class FallbackBeanInstanceProducer

extends Object
implements BeanInstanceProducer
Class Inheritance
All Implemented Interfaces
org.hibernate.resource.beans.spi.BeanInstanceProducer
Imports
java.lang.reflect.Constructor, org.hibernate.InstantiationException, org.hibernate.resource.beans.spi.BeanInstanceProducer, org.jboss.logging.Logger

BeanInstanceProducer implementation based on direct instantiation. Usually, this is used when either:
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final FallbackBeanInstanceProducer
INSTANCE

Singleton access

private static final Logger

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Implements org.hibernate.resource.beans.spi.BeanInstanceProducer.produceBeanInstance.

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
)

Implements org.hibernate.resource.beans.spi.BeanInstanceProducer.produceBeanInstance.

Produce a named bean instance
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final FallbackBeanInstanceProducer INSTANCE

Singleton access

logback to summary
private static final Logger log

Constructor Detail

FallbackBeanInstanceProducerback to summary
private FallbackBeanInstanceProducer()

Method Detail

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

Implements org.hibernate.resource.beans.spi.BeanInstanceProducer.produceBeanInstance.

Doc from org.hibernate.resource.beans.spi.BeanInstanceProducer.produceBeanInstance.

Produce a bean instance

Parameters
beanType:Class<B>

The Java type of bean to produce

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

Implements org.hibernate.resource.beans.spi.BeanInstanceProducer.produceBeanInstance.

Doc from org.hibernate.resource.beans.spi.BeanInstanceProducer.produceBeanInstance.

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

Annotations
@Override