Giter Site home page Giter Site logo

Comments (4)

jcanomx avatar jcanomx commented on June 11, 2024

How about this, if the RDAP Server finds 2 implementations of the data access API, the default implementation and a new one, the Server will automatically give preference to the later one. This way, you don’t have to remove the default implementation of the classpath or configure anything.

Now the question here is what happens if the Server finds 3 or more implementations? Should the Server throw the exception and shut itself down?

from rdap-server.

ydahhrk avatar ydahhrk commented on June 11, 2024

How about this, if the RDAP Server finds 2 implementations of the data access API, the default implementation and a new one, the Server will automatically give preference to the later one.

Fair enough.

what happens if the Server finds 3 or more implementations?

Why not use the file?

I think of your idea as a reasonable fallback strategy in case some ambiguity can be worked around, but I don't see how preventing the user from keeping many implementations in the classpath (with a simple swap switch) helps anyone.

from rdap-server.

jcanomx avatar jcanomx commented on June 11, 2024

All right then, let’s keep the fallback strategy, and use a configuration parameter to allow the user to select from multiple implementations. I’m still think is a little odd that someone might need multiple custom implementations in the classpath, but then again this solution is easy to implement and gives the user more options.

from rdap-server.

ydahhrk avatar ydahhrk commented on June 11, 2024

How about this, if the RDAP Server finds 2 implementations of the data access API, the default implementation and a new one, the Server will automatically give preference to the later one. This way, you don’t have to remove the default implementation of the classpath or configure anything.

Just to clarify: The default implementation depends on the data access API (which is where the implementation loader sits right now), not the other way around, so the implementation loader is incapable of recognizing the default implementation among several candidates. After an off-thread discussion, we decided not to implement this feature.

from rdap-server.

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.