| Package | Description |
|---|---|
| uk.co.jemos.podam.api |
This package contains PODAM main APIs
|
| Modifier and Type | Method and Description |
|---|---|
private void |
PodamFactoryImpl.fillCollection(Collection<? super Object> collection,
ManufacturingContext manufacturingCtx,
Map<String,Type> typeArgsMap,
Type... genericTypeArgs)
It fills a collection with the required number of elements of the
required type.
|
private void |
PodamFactoryImpl.fillCollection(ManufacturingContext manufacturingCtx,
List<Annotation> annotations,
String attributeName,
Collection<? super Object> collection,
Class<?> collectionElementType,
Type... genericTypeArgs)
It fills a collection with the required number of elements of the
required type.
|
private void |
PodamFactoryImpl.fillMap(Map<? super Object,? super Object> map,
ManufacturingContext manufacturingCtx,
Map<String,Type> typeArgsMap,
Type... genericTypeArgs)
It fills a Map with the required number of elements of the required type.
|
private void |
PodamFactoryImpl.fillMap(MapArguments mapArguments,
ManufacturingContext manufacturingCtx)
It fills a Map with the required number of elements of the required type.
|
private Object |
PodamFactoryImpl.getMapKeyOrElementValue(MapKeyOrElementsArguments keyOrElementsArguments,
ManufacturingContext manufacturingCtx)
It fills a Map key or value with the appropriate value, considering
attribute-level customisation.
|
private Object[] |
PodamFactoryImpl.getParameterValuesForConstructor(Constructor<?> constructor,
Class<?> pojoClass,
ManufacturingContext manufacturingCtx,
Map<String,Type> typeArgsMap,
Type... genericTypeArgs)
Given a constructor it manufactures and returns the parameter values
required to invoke it
|
private Object[] |
PodamFactoryImpl.getParameterValuesForMethod(Method method,
Class<?> pojoClass,
ManufacturingContext manufacturingCtx,
Map<String,Type> typeArgsMap,
Type... genericTypeArgs)
Given a method it manufactures and returns the parameter values
required to invoke it
|
private <T> T |
PodamFactoryImpl.getValueForAbstractType(Class<T> pojoClass,
AttributeMetadata pojoMetadata,
ManufacturingContext manufacturingCtx,
Type[] genericTypeArgs)
Returns a value for an abstract type or interface if possible.
|
private <T> T |
PodamFactoryImpl.instantiatePojo(Class<T> pojoClass,
ManufacturingContext manufacturingCtx,
Map<String,Type> typeArgsMap,
Type... genericTypeArgs)
It creates and returns an instance of the given class if at least one of
its constructors has been annotated with
PodamConstructor |
private Object |
PodamFactoryImpl.instantiatePojoWithoutConstructors(Class<?> pojoClass,
ManufacturingContext manufacturingCtx,
Map<String,Type> typeArgsMap,
Type... genericTypeArgs)
It attempts to create an instance of the given class
|
private Object |
PodamFactoryImpl.manufactureAttributeValue(Object pojo,
ManufacturingContext manufacturingCtx,
Class<?> attributeType,
Type genericAttributeType,
List<Annotation> annotations,
String attributeName,
Map<String,Type> typeArgsMap,
Type... genericTypeArgs)
It manufactures and returns the value for a POJO attribute.
|
private Object |
PodamFactoryImpl.manufactureParameterValue(Class<?> pojoClass,
Class<?> parameterType,
Type genericType,
List<Annotation> annotations,
Map<String,Type> typeArgsMap,
ManufacturingContext manufacturingCtx,
Type... genericTypeArgs)
Manufactures and returns the parameter value for method required to
invoke it
|
private <T> T |
PodamFactoryImpl.manufacturePojoInternal(Class<T> pojoClass,
AttributeMetadata pojoMetadata,
ManufacturingContext manufacturingCtx,
Type... genericTypeArgs)
Generic method which returns an instance of the given class filled with
values dictated by the strategy
|
private <T> T |
PodamFactoryImpl.populatePojoInternal(T pojo,
ManufacturingContext manufacturingCtx,
Map<String,Type> typeArgsMap,
Type... genericTypeArgs)
Fills given class filled with values dictated by the strategy
|
private Object |
PodamFactoryImpl.resolveArrayElementValue(Class<?> attributeType,
Type genericType,
String attributeName,
ManufacturingContext manufacturingCtx,
List<Annotation> annotations,
Object pojo,
Map<String,Type> typeArgsMap)
It returns an Array with the first element set
|
private Collection<? super Object> |
PodamFactoryImpl.resolveCollectionValueWhenCollectionIsPojoAttribute(Object pojo,
ManufacturingContext manufacturingCtx,
Class<?> collectionType,
String attributeName,
List<Annotation> annotations,
Map<String,Type> typeArgsMap,
Type... genericTypeArgs)
It returns a collection of some sort with some data in it.
|
private Map<? super Object,? super Object> |
PodamFactoryImpl.resolveMapValueWhenMapIsPojoAttribute(Object pojo,
ManufacturingContext manufacturingCtx,
Class<?> attributeType,
String attributeName,
List<Annotation> annotations,
Map<String,Type> typeArgsMap,
Type... genericTypeArgs)
It manufactures and returns a Map with at least one element in it
|
private <T> T |
PodamFactoryImpl.resortToExternalFactory(ManufacturingContext manufacturingCtx,
String msg,
Class<T> pojoClass,
Type... genericTypeArgs)
Delegates POJO manufacturing to an external factory
|
Copyright © 2015. All rights reserved.