Package no.entur.mapstruct.spi.protobuf
Class ProtobufLiteBuilderProvider
- java.lang.Object
-
- org.mapstruct.ap.spi.DefaultBuilderProvider
-
- no.entur.mapstruct.spi.protobuf.ProtobufLiteBuilderProvider
-
- All Implemented Interfaces:
org.mapstruct.ap.spi.BuilderProvider
public class ProtobufLiteBuilderProvider extends org.mapstruct.ap.spi.DefaultBuilderProviderDetect builder methods for protobuf lite generated classes.Protobuf lite builders are not detected as such by the DefaultBuilderProvider because the return type is not an explicit match for the desired TypeElement. Relying instead on known name of builder method and superclass of return type.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROTOBUF_LITE_GENERATED_MESSAGE
-
Constructor Summary
Constructors Constructor Description ProtobufLiteBuilderProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisBuildMethod(ExecutableElement buildMethod, TypeElement typeElement)
-
-
-
Field Detail
-
PROTOBUF_LITE_GENERATED_MESSAGE
public static final String PROTOBUF_LITE_GENERATED_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isBuildMethod
protected boolean isBuildMethod(ExecutableElement buildMethod, TypeElement typeElement)
- Overrides:
isBuildMethodin classorg.mapstruct.ap.spi.DefaultBuilderProvider
-
-