Top Description Constructors Methods
org.springframework.objenesis.instantiator.basic

public Class FailingInstantiator<T>

extends Object
implements ObjectInstantiator<T>
Class Inheritance
All Implemented Interfaces
org.springframework.objenesis.instantiator.ObjectInstantiator
Annotations
@Instantiator:NOT_COMPLIANT
Imports
org.springframework.objenesis.ObjenesisException, org.springframework.objenesis.instantiator.ObjectInstantiator, org.springframework.objenesis.instantiator.annotations.Instantiator, .Typology

The instantiator that always throws an exception. Mainly used for tests
Author
Henri Tremblay

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

Always throwing an exception
newInstance
()

Implements org.springframework.objenesis.instantiator.ObjectInstantiator.newInstance.

Returns a new instance of an object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FailingInstantiatorback to summary
public FailingInstantiator(Class<T> type)

Method Detail

newInstanceback to summary
public T newInstance()

Implements org.springframework.objenesis.instantiator.ObjectInstantiator.newInstance.

Doc from org.springframework.objenesis.instantiator.ObjectInstantiator.newInstance.

Returns a new instance of an object. The returned object's class is defined by the implementation.

Returns:T

Always throwing an exception