public abstract class AbstractExternalFactory extends Object implements PodamFactory
| Constructor and Description |
|---|
AbstractExternalFactory() |
| Modifier and Type | Method and Description |
|---|---|
ClassInfoStrategy |
getClassStrategy()
It returns the class info strategy for this factory.
|
PodamFactory |
getExternalFactory()
It returns the external factory assigned to this factory.
|
DataProviderStrategy |
getStrategy()
It returns the strategy for this factory.
|
<T> T |
manufacturePojoWithFullData(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.
|
PodamFactory |
setClassStrategy(ClassInfoStrategy classInfoStrategy)
Sets the class info strategy for this factory
|
PodamFactory |
setExternalFactory(PodamFactory externalFactory)
Sets an external factory for this factory to delegate requests it cannot
process
|
PodamFactory |
setStrategy(DataProviderStrategy strategy)
Sets the data provider strategy for this factory
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmanufacturePojo, populatePojopublic <T> T manufacturePojoWithFullData(Class<T> pojoClass, Type... genericTypeArgs)
PodamFactory
This method uses RandomDataProviderStrategyImpl as the default
implementation.
manufacturePojoWithFullData 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()
PodamFactorygetStrategy in interface PodamFactorypublic PodamFactory setStrategy(DataProviderStrategy strategy)
PodamFactorysetStrategy in interface PodamFactorystrategy - A data provider strategy to be used by this factorypublic ClassInfoStrategy getClassStrategy()
PodamFactorygetClassStrategy in interface PodamFactorypublic PodamFactory setClassStrategy(ClassInfoStrategy classInfoStrategy)
PodamFactorysetClassStrategy in interface PodamFactoryclassInfoStrategy - A class info strategy to be used by this factorypublic PodamFactory getExternalFactory()
PodamFactorygetExternalFactory in interface PodamFactorypublic PodamFactory setExternalFactory(PodamFactory externalFactory)
PodamFactorysetExternalFactory in interface PodamFactoryexternalFactory - An external factory to be used by this factoryCopyright © 2015. All rights reserved.