Package org.objenesis.instantiator.basic
Class NullInstantiator<T>
- java.lang.Object
-
- org.objenesis.instantiator.basic.NullInstantiator<T>
-
- All Implemented Interfaces:
ObjectInstantiator<T>
@Instantiator(NOT_COMPLIANT) public class NullInstantiator<T> extends java.lang.Object implements ObjectInstantiator<T>
The instantiator that always return a null instance
-
-
Constructor Summary
Constructors Constructor Description NullInstantiator(java.lang.Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
newInstance()
Returns a new instance of an object.
-
-
-
Constructor Detail
-
NullInstantiator
public NullInstantiator(java.lang.Class<T> type)
-
-
Method Detail
-
newInstance
public T newInstance()
Description copied from interface:ObjectInstantiator
Returns a new instance of an object. The returned object's class is defined by the implementation.- Specified by:
newInstance
in interfaceObjectInstantiator<T>
- Returns:
- Always null
-
-