Top Description Constructors Methods
org.objenesis.instantiator.basic

public Class NullInstantiator<T>

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

The instantiator that always return a null instance
Author
Henri Tremblay

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

Always null
newInstance
()

Implements org.objenesis.instantiator.ObjectInstantiator.newInstance.

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

Constructor Detail

NullInstantiatorback to summary
public NullInstantiator(Class<T> type)

Method Detail

newInstanceback to summary
public T newInstance()

Implements org.objenesis.instantiator.ObjectInstantiator.newInstance.

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

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

Returns:T

Always null