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, wait
manufacturePojo, populatePojo
public <T> T manufacturePojoWithFullData(Class<T> pojoClass, Type... genericTypeArgs)
PodamFactory
This method uses RandomDataProviderStrategyImpl
as the default
implementation.
manufacturePojoWithFullData
in interface PodamFactory
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 DataProviderStrategy getStrategy()
PodamFactory
getStrategy
in interface PodamFactory
public PodamFactory setStrategy(DataProviderStrategy strategy)
PodamFactory
setStrategy
in interface PodamFactory
strategy
- A data provider strategy to be used by this factorypublic ClassInfoStrategy getClassStrategy()
PodamFactory
getClassStrategy
in interface PodamFactory
public PodamFactory setClassStrategy(ClassInfoStrategy classInfoStrategy)
PodamFactory
setClassStrategy
in interface PodamFactory
classInfoStrategy
- A class info strategy to be used by this factorypublic PodamFactory getExternalFactory()
PodamFactory
getExternalFactory
in interface PodamFactory
public PodamFactory setExternalFactory(PodamFactory externalFactory)
PodamFactory
setExternalFactory
in interface PodamFactory
externalFactory
- An external factory to be used by this factoryCopyright © 2016. All rights reserved.