public class NullExternalFactory extends AbstractExternalFactory
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
Application logger
|
| Modifier | Constructor and Description |
|---|---|
private |
NullExternalFactory()
Implementation of the Singleton pattern
|
| Modifier and Type | Method and Description |
|---|---|
static NullExternalFactory |
getInstance()
Instantiation method
|
<T> T |
manufacturePojo(Class<T> pojoClass,
Type... genericTypeArgs)
Generic method which returns an instance of the given class filled with
dummy values, using the default data provider strategy.
|
<T> T |
populatePojo(T pojo,
Type... genericTypeArgs)
Generic method which populates an instance of the given class with
dummy values, using the default data provider strategy.
|
getClassStrategy, getExternalFactory, getStrategy, manufacturePojoWithFullData, setClassStrategy, setExternalFactory, setStrategyprivate NullExternalFactory()
public static NullExternalFactory getInstance()
public <T> T manufacturePojo(Class<T> pojoClass, Type... genericTypeArgs)
This method uses RandomDataProviderStrategyImpl as the default
implementation.
T - The type for which a filled instance is requiredpojoClass - The name of the class for which an instance filled with values
is requiredgenericTypeArgs - The generic Type arguments for a generic class instancepublic <T> T populatePojo(T pojo,
Type... genericTypeArgs)
PodamFactory
This method uses RandomDataProviderStrategyImpl as the default
implementation.
T - The type for which a filled instance is requiredpojo - The instance to be filled with valuesgenericTypeArgs - The generic Type arguments for a generic class instanceCopyright © 2016. All rights reserved.