FileDocCategorySizeDatePackage
InstantiationOptimizerAdapter.javaAPI DocHibernate 3.2.5865Fri Feb 03 15:15:20 GMT 2006org.hibernate.bytecode.javassist

InstantiationOptimizerAdapter

public class InstantiationOptimizerAdapter extends Object implements ReflectionOptimizer.InstantiationOptimizer, Serializable
The {@link ReflectionOptimizer.InstantiationOptimizer} implementation for Javassist which simply acts as an adpater to the {@link FastClass} class.
author
Steve Ebersole

Fields Summary
private final FastClass
fastClass
Constructors Summary
public InstantiationOptimizerAdapter(FastClass fastClass)

		this.fastClass = fastClass;
	
Methods Summary
public java.lang.ObjectnewInstance()

		try {
			return fastClass.newInstance();
		}
		catch ( Throwable t ) {
			throw new InstantiationException(
					"Could not instantiate entity with Javassist optimizer: ",
			        fastClass.getJavaClass(), t
			);
		}