Skip to content

Generator for wrapper type (JsonNullable) #974

Discussion options

You must be logged in to vote

Solved it via a custom InternalServiceProvider. Is this the preferred way?

public final class InternalServiceProviderImpl implements InternalServiceProvider {

    @Override
    public InternalContainerFactoryProvider getContainerFactoryProvider() {
        return new InternalContainerFactoryProviderImpl();
    }

    @Override
    public InternalGetterMethodFieldResolver getGetterMethodFieldResolver() {
        return new InternalGetterMethodFieldResolverImpl();
    }

    static final class InternalGetterMethodFieldResolverImpl implements InternalGetterMethodFieldResolver {
        private static final String GET_PREFIX = "get";
        private static final String IS_PREFIX = "is";

   …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by NicklasWallgren
Comment options

You must be logged in to vote
2 replies
@NicklasWallgren
Comment options

@armandino
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants