Git Product home page Git Product logo

Comments (3)

danielnaber avatar danielnaber commented on July 20, 2024

This sounds like what DefaultResourceDataBroker already does, only that the reference to it is currently static, which is not so nice.

from languagetool.

slotties avatar slotties commented on July 20, 2024

That's one of the problems. The other one is that the ResourceDataBroker interface provides methods to get paths and URLs. I haven't checked in what context the paths are used, but URLs might be problematic. It's possible to create custom URLStreamHandlers (that resolve URLs), so it's possible to have an URL using a custom protocol that points to some very specific location, e.g. a database object. I barely remember some problems in the Weblogic application server when trying to use custom URLStreamHandlers, but can't remember what the problem was.

Long story short:
I would like to have the interface return nothing but InputStreams. But I haven't analyzed the code yet, so I don't know if it's even possible to reduce the interface that much (beside a slight problem with backward compatibility).

from languagetool.

danielnaber avatar danielnaber commented on July 20, 2024

I'm closing this, as there has been no work done for more than two years.

from languagetool.

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.