Package uk.wardm.formaker.generator.pojo
Interface ComponentFactory
- All Known Implementing Classes:
ComponentFactoryImpl
public interface ComponentFactory
-
Method Summary
Modifier and Type Method Description Optional<Component>createFromField(Field field)Given a field on a POJO, creates a form field object that represents it.
-
Method Details
-
createFromField
Given a field on a POJO, creates a form field object that represents it. If the field is excluded (e.g. by having an@Excludeannotation attached, then theOptionalreturned will be empty.- Parameters:
field- Field on a POJO- Returns:
- Form Component, if applicable
-