public class LoggingExternalFactory extends Object implements PodamFactory
PodamFactory| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
Application logger
|
private static Type[] |
NO_TYPES
Empty list of types
|
private static LoggingExternalFactory |
SINGLETON
The singleton instance of this implementation
|
| Modifier | Constructor and Description |
|---|---|
private |
LoggingExternalFactory()
Implementation of the Singleton pattern
|
| Modifier and Type | Method and Description |
|---|---|
static LoggingExternalFactory |
getInstance()
Instantiation method
|
DataProviderStrategy |
getStrategy()
It returns the strategy for this factory.
|
<T> T |
manufacturePojo(Class<T> pojoClass)
Generic method which returns an instance of the given class filled with
dummy values, using the default data provider strategy.
|
<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.
|
private static final org.slf4j.Logger LOG
private static final LoggingExternalFactory SINGLETON
private static final Type[] NO_TYPES
private LoggingExternalFactory()
public static LoggingExternalFactory getInstance()
public <T> T manufacturePojo(Class<T> pojoClass)
This method uses RandomDataProviderStrategy as the default
implementation.
manufacturePojo in interface PodamFactorypojoClass - The name of the class for which an instance filled with values
is requiredpublic <T> T manufacturePojo(Class<T> pojoClass, Type... genericTypeArgs)
This method uses RandomDataProviderStrategy as the default
implementation.
manufacturePojo in interface PodamFactoryT - 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 DataProviderStrategy getStrategy()
getStrategy in interface PodamFactoryCopyright © 2015. All rights reserved.