Package uk.wardm.formaker.generator.pojo
Class ComponentFactoryImpl
java.lang.Object
uk.wardm.formaker.generator.pojo.ComponentFactoryImpl
- All Implemented Interfaces:
ComponentFactory
public class ComponentFactoryImpl extends Object implements ComponentFactory
-
Constructor Summary
Constructors Constructor Description ComponentFactoryImpl() -
Method Summary
Modifier and Type Method Description Optional<Component>createFromField(Field field)Create the correct type of component given a field on a class.
-
Constructor Details
-
ComponentFactoryImpl
public ComponentFactoryImpl()
-
-
Method Details
-
createFromField
Create the correct type of component given a field on a class.- Specified by:
createFromFieldin interfaceComponentFactory- Parameters:
field- Must be supported according to DefaultFieldTypeConverter.supports(field.getType())- Returns:
- Component
-