Class EndpointOptionsExtractor
java.lang.Object
nl.datasteel.crudcraft.codegen.reader.model.EndpointOptionsExtractor
- All Implemented Interfaces:
ModelPartExtractor<EndpointOptions>
Singleton extractor for
EndpointOptions
.
Extracts endpoint-related options from a model annotated with CrudCrafted
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EndpointOptionsExtractor
Singleton instance of EndpointOptionsExtractor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextract
(TypeElement cls, ProcessingEnvironment env) Extracts endpoint options from the given model class.
-
Field Details
-
INSTANCE
Singleton instance of EndpointOptionsExtractor.
-
-
Constructor Details
-
EndpointOptionsExtractor
public EndpointOptionsExtractor()
-
-
Method Details
-
extract
Extracts endpoint options from the given model class.- Specified by:
extract
in interfaceModelPartExtractor<EndpointOptions>
- Parameters:
cls
- the TypeElement representing the model classenv
- processing environment for annotation utilities- Returns:
- an EndpointOptions object containing the extracted options
-