Package uk.co.jemos.podam.api
Interface ClassInfoStrategy
-
- All Known Implementing Classes:
AbstractClassInfoStrategy,DefaultClassInfoStrategy
public interface ClassInfoStrategyThis interface defines the contact for PODAM class info introspection.It provides a tool for customization of class introspection process.
- Since:
- 5.1.0
- Author:
- daivanov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassAttributeApprovergetClassAttributeApprover(Class<?> pojoClass)ClassInfogetClassInfo(Class<?> pojoClass)Set<Class<? extends Annotation>>getExcludedAnnotations()IdentifiesAnnotations for fields to be skipped.Set<String>getExcludedFields(Class<?> pojoClass)Identifies fields to be skipped.Collection<Method>getExtraMethods(Class<?> pojoClass)It returns the collection of extra methods to execute.
-
-
-
Method Detail
-
getExcludedAnnotations
Set<Class<? extends Annotation>> getExcludedAnnotations()
IdentifiesAnnotations for fields to be skipped.Should return set of annotations, which will be treated as notion for
PodamFactoryto skip production of these particular fields.- Returns:
- set of annotations, which mark fields to be skipped from populating.
-
getExcludedFields
Set<String> getExcludedFields(Class<?> pojoClass)
Identifies fields to be skipped.Should return set of field names as case-sensitive string, which will be treated as notion for
PodamFactoryto skip production of these particular fields.- Parameters:
pojoClass- a class for which fields should be skipped- Returns:
- set of field name, which mark fields to be skipped from populating.
-
getClassInfo
ClassInfo getClassInfo(Class<?> pojoClass)
- Parameters:
pojoClass- a class to introspect and fetch attributes- Returns:
- information about class internal structure
ClassInfo
-
getClassAttributeApprover
ClassAttributeApprover getClassAttributeApprover(Class<?> pojoClass)
-
getExtraMethods
Collection<Method> getExtraMethods(Class<?> pojoClass)
It returns the collection of extra methods to execute.- Parameters:
pojoClass- The pojo class- Returns:
- the collection of extra methods to execute.
- Since:
- 5.3.0
-
-