Coder Social home page Coder Social logo

Comments (5)

johnament avatar johnament commented on August 17, 2024

As a part of #25 adding a new RegisterProvider annotation.

from microprofile-rest-client.

OndroMih avatar OndroMih commented on August 17, 2024

@johnament @andymc12
Do you remember why RegisterProviders wasn't a good name? Is it because it should match what RestClientBuilder.register does via builder pattern and that works for more things than just providers? In that case, what about renaming to @RegisterRestComponent because the argument to RestClientBuilder.register (Configuration.register) is named componentClass?

from microprofile-rest-client.

OndroMih avatar OndroMih commented on August 17, 2024

@WithRestComponent looks even better than "Register...":

@GET
@WthRestComponent(JsonbProvider.class)
@WithRestComponent(MyFeature.class)
@Produces(MediaType.APPLICATION_JSON)
public MyResource getResource() {
...
}

from microprofile-rest-client.

andymc12 avatar andymc12 commented on August 17, 2024

I don't think were any strong objects to @RegisterProvider, but on one of the earlier calls, some of us just didn't quite like the sound of it, but didn't have any better ideas either.

For my two cents, @RegisterProvider has grown on me, but @WithRestComponent sounds good too - no strong feelings either way.

from microprofile-rest-client.

johnament avatar johnament commented on August 17, 2024

Agreed on the call, we're ok with the names @RegisterProvider and @RegisterProviders. End users should only need to use the repeatable @RegisterProvider

from microprofile-rest-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.