org.hibernate.resource.beans.spi.BeanInstanceProducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core-jakarta Show documentation
Show all versions of hibernate-core-jakarta Show documentation
Hibernate O/RM implementation of the Jakarta Persistence specification
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.resource.beans.spi;
/**
* Contract for producing a bean instance
*
* @author Steve Ebersole
*/
public interface BeanInstanceProducer {
/**
* Produce a bean instance
*
* @param beanType The Java type of bean to produce
*/
B produceBeanInstance(Class beanType);
/**
* Produce a named bean instance
*
* @param name The bean name
* @param beanType The Java type that the produced bean should be typed as
*/
B produceBeanInstance(String name, Class beanType);
}